* [B.A.T.M.A.N.] error code
[not found] <200707261000.l6QA03nQ024113@open-mesh.net>
@ 2007-07-27 9:34 ` Anton Gillert
2007-07-27 12:33 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Anton Gillert @ 2007-07-27 9:34 UTC (permalink / raw)
To: b.a.t.m.a.n
hi,
i've experienced some trouble with batman. when batman is started with
an invalid interface, due a typo eht1, batman exits/crushes but gives no
message and the exit value is 0 too. i would propose that batman, gives
a message or at least changes the exit value, when it crushes.
greets
anton
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [B.A.T.M.A.N.] error code
2007-07-27 9:34 ` [B.A.T.M.A.N.] error code Anton Gillert
@ 2007-07-27 12:33 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2007-07-27 12:33 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
Hi,
> i've experienced some trouble with batman. when batman is started with
> an invalid interface, due a typo eht1, batman exits/crushes but gives no
> message and the exit value is 0 too. i would propose that batman, gives
> a message or at least changes the exit value, when it crushes.
this is not entirely correct. We have to distinguish between two cases:
1. batman forks into the background (batmand eth1):
- You get an exit code of 0 because the daemon forks into the background. The
foreground process exits normally. After forking all the interfaces are
checked.
- Batman logs its error message to syslog (similar to all other daemons).
Depending on your syslog configuration you will find the error message
in /var/log/<logfile>.
2. batman does not fork (use a debug level of 3 or 4 -> batmand -d 3 eth1)
- You get an error exit code because batman does not fork before checking the
interfaces.
- The error message is printed in the current shell.
Regards,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-27 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200707261000.l6QA03nQ024113@open-mesh.net>
2007-07-27 9:34 ` [B.A.T.M.A.N.] error code Anton Gillert
2007-07-27 12:33 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox