[OLSR-users] olsr forking to background
Thu Mar 10 17:07:20 CET 2005
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 &
and everything should be fine.
More information about the Olsr-users