diff options
author | Gerrit Pape <pape@smarden.org> | 2005-01-10 19:35:51 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2005-01-10 19:35:51 +0000 |
commit | 61fb77984e256dc8b50b38710543c9a735864ab9 (patch) | |
tree | 7724c44afd4dc2976874ece335fd464f12f7a8be /man | |
parent | d87d3f5039c6b7a83a4b2bbca8e69d4373061e2c (diff) | |
download | runit-61fb77984e256dc8b50b38710543c9a735864ab9.tar.gz runit-61fb77984e256dc8b50b38710543c9a735864ab9.tar.xz runit-61fb77984e256dc8b50b38710543c9a735864ab9.zip |
* chpst.c: typo.
* svwaitdown.c: minimum timeout is 1 second; service directories no longer must start with /. * svwaitup.c: minimum uptime of services is 1 second; service directories no longer must start with /; print number of seconds a service is up if verbose. * man/svwaitdown.8, man/svwaitup.8: adapt.
Diffstat (limited to 'man')
-rw-r--r-- | man/svwaitdown.8 | 32 | ||||
-rw-r--r-- | man/svwaitup.8 | 25 |
2 files changed, 25 insertions, 32 deletions
diff --git a/man/svwaitdown.8 b/man/svwaitdown.8 index fecb6f4..eb1bec4 100644 --- a/man/svwaitdown.8 +++ b/man/svwaitdown.8 @@ -1,6 +1,6 @@ .TH svwaitdown 8 .SH NAME -svwaitdown \- waits for services controlled by runsv(8) or supervise(8) to be down +svwaitdown \- waits for services controlled by runsv(8) to be down .SH SYNOPSIS .B svwaitdown [ @@ -14,9 +14,7 @@ svwaitdown \- waits for services controlled by runsv(8) or supervise(8) to be do .I services .SH DESCRIPTION .I services -consists of one or more arguments. Each -.I service -directory must start with a slash. +consists of one or more arguments, each argument naming a service directory. .P .B svwaitdown sends each @@ -26,9 +24,7 @@ down. The .I services given at the command line must be controlled by -.BR runsv (8), -or -.BR supervise (8). +.BR runsv (8). .P .B svwaitdown blocks, limited by a @@ -39,7 +35,8 @@ are down or reports errors. .SH OPTIONS .TP .B \-v -verbose. Print verbose messages to stderr. +verbose. +Print verbose messages to stderr. .TP .B \-t \fIsec Set the timeout for waiting for @@ -48,10 +45,11 @@ to become down to .I sec seconds. .I sec -must be between 2 and 6000. Default is 600 (10 minutes). +must be between 1 and 6000. Default is 600 (10 minutes). .TP .B \-k -Kill. If the timeout is reached before all +Kill. +If the timeout is reached before all .I services are down, tell the .BR runsv (8) @@ -60,7 +58,8 @@ processes to send the a KILL signal. .TP .B \-x -Exit. Send each +Exit. +Send each .I service the ``exit'' command additionally to the ``down'' command, and wait for the corresponding @@ -77,10 +76,8 @@ are down. If a .I service is usually controlled by -.B runsv (8) -or -.BR supervise (8), -but no supervisor process is currently running, +.B runsv (8), +but no supervisor process is currently running in the directory, .B svwaitdown treats this .I service @@ -94,7 +91,7 @@ increases the exit code by one and exits non zero. The maximum is 100. .P .B svwaitdown -returns 111 if the timeout +returns 111 on error, or if the timeout .I sec was reached. .SH SEE ALSO @@ -110,7 +107,6 @@ runsvdir(8), runsvchdir(8), utmpset(8) .P - http://smarden.org/runit/ - http://cr.yp.to/daemontools.html +http://smarden.org/runit/ .SH AUTHOR Gerrit Pape <pape@smarden.org> diff --git a/man/svwaitup.8 b/man/svwaitup.8 index fe61ef6..5d6e151 100644 --- a/man/svwaitup.8 +++ b/man/svwaitup.8 @@ -1,6 +1,6 @@ .TH svwaitup 8 .SH NAME -svwaitup \- waits for services controlled by runsv(8) or supervise(8) to be up +svwaitup \- waits for services controlled by runsv(8) to be up .SH SYNOPSIS .B svwaitup [ @@ -13,22 +13,18 @@ svwaitup \- waits for services controlled by runsv(8) or supervise(8) to be up .I services .SH DESCRIPTION .I services -consist of one or more arguments. -Each -.I service -directory must start with a slash. +consists of one or more arguments, each argument naming a service directory. .P .B svwaitup checks each .I service given at the command line for being at least the specified number of seconds .I sec -up. The +up. +The .I services given at the command line must be controlled by -.BR runsv (8), -or -.BR supervise (8). +.BR runsv (8). .P .B svwaitup blocks until all @@ -41,7 +37,8 @@ was checking or reports errors. .SH OPTIONS .TP .B \-v -verbose. Print verbose messages to stderr. +verbose. +Print verbose messages to stderr. .TP .B \-s \fIsec Set the minimum number of seconds each @@ -50,7 +47,7 @@ has to be up to .I sec seconds. .I sec -must be between 2 and 600. +must be between 1 and 600. Default is 2. .SH EXIT CODES .B svwaitup @@ -65,7 +62,8 @@ If .B svwaitup exits 0, it does not guarantee that all .I services -are actually running. A +are actually running. +A .I service could have crashed immediatly after .B svwaitup @@ -102,7 +100,6 @@ runsvdir(8), runsvchdir(8), utmpset(8) .P - http://smarden.org/runit/ - http://cr.yp.to/daemontools.html +http://smarden.org/runit/ .SH AUTHOR Gerrit Pape <pape@smarden.org> |