svc — controls services monitored by supervise(1)
svc
[-u] [-d] [-o] [-p] [-c] [-h] [-a] [-i] [-t] [-k] [-x] {services
}
services
consists of any number of arguments, each argument naming a directory used by supervise(1).
svc applies all the options to each service
in turn.
Up. If the service
is not running, start it. If the service
stops, restart it.
Down. If the service
is running, send it a TERM signal and then a CONT signal. After it stops, do not restart it.
Once. If the service
is not running, start it. Do not restart it if it stops.
Pause. Send the service
a STOP signal.
Continue. Send the service
a CONT signal.
Hangup. Send the service
a HUP signal.
Alarm. Send the service
an ALRM signal.
Interrupt. Send the service
an INT signal.
Terminate. Send the service
a TERM signal.
Kill. Send the service
a KILL signal.
Exit.
supervise(1) will exit as soon as the service
is down. If you use this option on a stable system, you're doing something wrong; supervise(1) is designed to run forever.