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), or supervise(8).
svwaitup blocks until all services were up and running at least sec seconds when svwaitup was checking or reports errors.
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.
http://smarden.org/runit/
http://cr.yp.to/daemontools.html