From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] error code
Date: Fri, 27 Jul 2007 14:33:03 +0200 [thread overview]
Message-ID: <200707271433.03801.lindner_marek@yahoo.de> (raw)
In-Reply-To: <46A9BC17.5040009@fokus.fraunhofer.de>
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
prev parent reply other threads:[~2007-07-27 12:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200707271433.03801.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@open-mesh.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox