supervise — starts and monitors a service.
supervise
s
supervise switches to the directory named
and starts s
./run
.
It restarts ./run
if ./run
exits.
It pauses for a second after starting ./run
, so that it does not loop too quickly if ./run
exits immediately.
If the file
exists, supervise does not start s
/down./run
immediately.
You can use svc(1) to start ./run
and to give other commands to supervise.
supervise maintains status information in a binary format inside the directory
, which must be writable to supervise.
The status information can be read by svstat(1).
s
/supervise
supervise may exit immediately after startup if it cannot find the files it needs in
or if another copy of supervise is already running in s
.
Once supervise is successfully running, it will not exit unless it is killed or specifically asked to exit.
You can use svok(1) to check whether supervise is successfully running.
You can use svscan(1) to reliably start a collection of supervise processes.
s