summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-19 18:20:49 +0000
committerRoy Marples <roy@marples.name>2009-04-19 18:20:49 +0000
commitee53e6ad29d246c76b636cda72ad4834929ada43 (patch)
tree88da3634abd30da2f3d55b8035e64c4e268de3f8 /man
parente2942e34af370f6710661597aee5f750e2562f3c (diff)
downloadopenrc-ee53e6ad29d246c76b636cda72ad4834929ada43.tar.gz
openrc-ee53e6ad29d246c76b636cda72ad4834929ada43.tar.bz2
openrc-ee53e6ad29d246c76b636cda72ad4834929ada43.tar.xz
-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
Diffstat (limited to 'man')
-rw-r--r--man/start-stop-daemon.811
1 files changed, 9 insertions, 2 deletions
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.