problem with start-stop-daemon and --exec

Ed W lists at wildgooses.com
Sun Mar 4 15:39:43 UTC 2012


On 04/03/2012 14:26, ralda at gmx.de wrote:
> Hallo Ed!
>
>> $ start-stop-daemon --stop --exec /usr/sbin/nginx --pidfile
>> /var/run/nginx.pid
>> no /usr/sbin/nginx found; none killed
> What about ...
>
> start-stop-daemon --stop --pidfile /var/run/nginx.pid
>
> ... ? (shall work on both, upstream and Busybox versions)
>
>

Yes this works.  Up until recently that's exactly what gentoo used, but 
they have now started to switch their init scripts to be more specific 
with --exec

I guess this also defends against services which die in the background 
and something else ends up accidently running on the same pid

Any chance someone could cook up a fix to make busybox match the other 
start-stop-daemon behaviour?

Thanks

Ed W


More information about the busybox mailing list