[OLSR-users] olsr forking to background

Andreas Petersson (spam-protected)
Thu Mar 10 17:07:20 CET 2005


hello!

i am trying to write a clean startup script for olsr.

it all works perfectly when i run olsrd with debuglevel 1 or higher.

i get the process id from olsr, but it returns a wrong number when i run 
it with -d 0, becuse it forks itself in the background, and gets a new 
pid that i do not know.

what i am missing is a -nofork option, which keeps olsrd from forking 
even without debug output.

then i start olsrd with :

/sbin/olsrd -d 0 -nofork &
pid=$!

and everything should be fine.

greetings
andreas



More information about the Olsr-users mailing list