service-is-ok, svok — daemontools compatibility service checker
service-is-ok
{directory
}
svok
{directory
}
service-is-ok checks to see whether service-manager(1) (or runit's runsv(1),
s6's s6-supervise(1), daemontools' supervise(1), or daemontools-encore's
supervise(1)) is currently managing a service.
directory
is either a supervise directory or a daemontools-style service
directory with a supervise directory named supervise
within it.
A service is considered managed if its supervise directory contains an ok
FIFO that can be opened for write in non-blocking mode (i.e. client mode).
The result is signalled by the exit code, which is 0 upon success, 111
if the directory does not exist or some other error occurred, and 100
if the ok
FIFO cannot be opened in client mode.
For more on service and supervise directories, see service-manager(1).