From ee53e6ad29d246c76b636cda72ad4834929ada43 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 19 Apr 2009 18:20:49 +0000 Subject: -w, --wait seconds New option so you can set the number of seconds to wait for and check the daemon is still running. The old code that periodically polled wasn't that reliable - in this case simpler == better. Fixes #160 --- man/start-stop-daemon.8 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'man') diff --git a/man/start-stop-daemon.8 b/man/start-stop-daemon.8 index 88f542c..1b1f664 100644 --- a/man/start-stop-daemon.8 +++ b/man/start-stop-daemon.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 1, 2009 +.Dd April 19, 2009 .Dt START-STOP-DAEMON 8 SMM .Os OpenRC .Sh NAME @@ -140,6 +140,12 @@ Redirect the standard output of the process to logfile when started with Must be an absolute pathname, but relative to the path optionally given with .Fl r , -chroot . The logfile can also be a named pipe. +.It Fl w , -wait Ar seconds +Wait +.Ar seconds +after starting and check that daemon is still running. +Useful for daemons that check configuration after forking or stopping race +conditions where the pidfile is written out after forking. .It Fl 2 , -stderr Ar logfile The same thing as .Fl 1 , -stdout @@ -160,7 +166,8 @@ can also set the scheduling priority of the daemon, but the command line option takes precedence. .Pp .Va SSD_STARTWAIT -overrides the number of milliseconds set in +As the +.Fl w , -wait option above. .Pa /etc/rc.conf .Nm waits for to check the daemon is still running. -- cgit v1.2.3