[Olsr-dev] Running Background and Foreground

Markus Kittenberger (spam-protected)
Fri Mar 12 22:47:27 CET 2010


Am 12.03.2010, 17:21 Uhr, schrieb Airton Ishimori <(spam-protected)>:

> Have difference in generate a ipk packet with Openwrt-SDK to running in
> background and foreground? Becouse I generate a olsrd ipk packet from  
> source
> with SDK and when I install into OpenWRT, the olsrd is not keep  
> running...
> Why?

please verify the output on the console (and the syslog aswell)
olsrd does usually tells you why it stops,..

regarding back and foreground,..

default behaviour is to fork a background process (which than usually  
keeps running until u kill it)

but you can specify -nofork on the commandline, or define a debuglevel > 0  
which disables the forking, and olsrd "keeps" running in foreground,..
(and you can stop it by pressing ctrl+c)

nevertheless if there are errors in the cmdline parameters or  
configuration files (or (unlikely) some other problems)
then olsrd will print an error message before it stops (but if it already  
forked to backgorund u will not see this error messages)

Markus

p.s. if somebody should be able to help you, u have to provide more  
details of what you are doing,..

which version of Openwrt SDK are u using`?
how did u try to start olsrd?
what was the console output?
are there some olsrd errors in the syslog?

p.p.s. what happens if u run this commandline?

olsrd -i eth0 -d 1

(it should run until u press ctrl+c) if not please provide its output




More information about the Olsr-dev mailing list