svwaitup(8)

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

SYNOPSIS
svwaitup [ -v ] [ -s sec ] services

DESCRIPTION
services consists of one or more arguments, each argument naming a service directory.

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 runsv(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 1 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. runsv(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), runsv(8), runsvctrl(8), runsvstat(8), chpst(8), svlogd(8), runit(8), runit-init(8), runsvdir(8), runsvchdir(8), utmpset(8)

http://smarden.org/runit/

AUTHOR
Gerrit Pape <pape@smarden.org>