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.
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.
http://smarden.org/runit/
http://cr.yp.to/daemontools.html