G. Pape
runit

Name

svwaitup - waits for services controlled by supervise(8) to be up

Synopsis

svwaitup [ -v ] [ -s sec ] services

Description

services consist of one or more arguments. Each service directory must start with a slash.

svwaitup checks each service given at the command line for being at least the specified number of seconds sec up. The services given at the command line must be controlled by supervise(8).

svwaitup blocks until all services were up and running at least sec seconds when svwaitup was checking or reports errors.

Options

-v
verbose. Print verbose messages to stderr.
-s sec
Set the minimum number of seconds each service has to be up to sec seconds. sec must be between 2 and 600. Default is 2.

Exit Codes

svwaitup returns 0 as soon as all services were at least sec seconds up.

Note: If svwaitup exits 0, it does not guarantee that all services are actually running. A service could have crashed immediatly after svwaitup was successfully checking it to be up sec seconds. services should be designed not to rely on svwaitup to resolve dependencies.

For each service that is down and not requested to become up, or that causes an error while checking (e.g. supervise(8) is not running), svwaitup increases the exit code by one and exits non zero. The maximum is 100.

svwaitup returns 111 on error.

See Also

svwaitdown(8), runit(8), runit-init(8), runsvdir(8), runsv(8), supervise(8), svscan(8)

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

Author

Gerrit Pape <pape@smarden.org>


Table of Contents