G. Pape
runit

Name

svwaitdown - waits for services controlled by supervise(8) to be down

Synopsis

svwaitdown [ -v ] [ -t sec ] services

Description

services consist of one or more arguments.

svwaitdown checks each service given at the command line for being down. The services given at the command line must be controlled by supervise(8).

svwaitdown blocks, limited by a timeout, until all services are down or reports errors.

Options

-v
verbose. Print verbose messages to stderr.
-t sec
Set the timeout for waiting for services to become down to sec seconds. sec must be between 2 and 6000. Default is 600 (10 minutes).

Exit Codes

svwaitdown returns 0 as soon as all services are down.

If a service is usually controlled by supervise(8), but no supervise(8) process is currently running, svwaitdown treats this service as if it would be down.

For each service that causes an error while checking, svwaitdown increases the exit code by one and exits non zero. The maximum is 100.

svwaitdown returns 111 if the timeout sec was reached.

See Also

svwaitup(8), supervise(8), svscan(8), runit(8), runit-init(8)

http://smarden.org/runit/
http://cr.yp.to/daemontools.html

Author

Gerrit Pape <pape@smarden.org>


Table of Contents