[OLSR-users] olsr forking to background

Andreas T√łnnesen (spam-protected)
Thu Mar 10 17:14:56 CET 2005


Hi,

Wouldn't it be easier if I modify olsrd to return the PID of the child it
has forked when running at debuglevel 0?

- Andreas

> 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
> _______________________________________________
> olsr-users mailing list
> (spam-protected)
> https://www.olsr.org/mailman/listinfo/olsr-users
>


---------
Andreas T√łnnesen
http://www.olsr.org



More information about the Olsr-users mailing list