[OLSR-users] olsr forking to background
Thu Mar 10 17:14:56 CET 2005
Wouldn't it be easier if I modify olsrd to return the PID of the child it
has forked when running at debuglevel 0?
> 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.
> olsr-users mailing list
More information about the Olsr-users