Request to add --retry/-R option to start-stop-daemon

Sameer Naik sameer.subscriptions at damagehead.com
Thu Nov 8 17:15:31 UTC 2012


Hello,

I am a user of busybox-1.18.5 and make use of start-stop-daemon in my
init scripts. I have noticed that when a daemon is requested to stop,
the start-stop-daemon will send a signal to the daemon program and
exit immediately. It will not wait for the application to exit. Due to
this issue the restart function of my init scripts does not work for
some daemon applications.

To get rid of this issue, i have written a bash function that waits a
timeout amount of time for the application to exit. In the manpage of
debian's start-stop-daemon there seems to be an option --retry that
can be specified so that start-stop-daemon can wait a timeout number
of seconds for the application to exit.

It would be really cool if busybox's start-stop-daemon had the same feature.

Regards
~Sameer


More information about the busybox mailing list