Low-level control primitive: writes raw command bytes directly to a service’s supervise/control fifo.
66-svctl [ -h ] [ -w uUdDrR ] [ -T milliseconds ] [ -s signal ] [ -abqHkti12pcylrodDuUxOQ ] [ --stop-group | --cont-group | --kill-group ] servicedir...
This program sends one or more commands to the 66-supervise process that monitors a service. It operates directly on a service directory: it reads nothing — no resolve database, no service name resolution, no state — it just opens servicedir/supervise/control and writes the requested bytes.
This is the reason it exists: it is the recovery path when the resolve database is unusable (a corrupted resolve makes 66 stop foo unable to map the name, but the control fifo still answers), and the primitive the system scripts rely on. It is installed in the libexec directory and is not meant for everyday use — the friendly, resolve-aware path is 66 signal, which also handles dependencies and accepts service names.
Several servicedir can be given, separated by a space. Commands accumulate in the order they appear on the command line (clustering works: -dx writes d then x). If a command cannot be sent to a servicedir, an error is reported and the remaining directories are still processed; the exit code reflects the last failure.
Unless -w is given, 66-svctl writes the commands and exits immediately without waiting for the service to reach any particular state.
u up, U up and ready (notified), d down, D down and ready to be brought up, r (re)started, R (re)started and ready. The wait is performed through the native event mechanism on servicedir/event and stays resolve-independent. If the service declares no readiness notification (no Notify set), a readiness wait (U/D/R) is downgraded to its non-ready equivalent (u/d/r).-w, fail after this delay if the wanted state has not been reached. 0 (the default) waits forever.-uO.Bring the service whose directory is /run/66/scandir/0/foo down
66-svctl -d -- /run/66/scandir/0/foo
Bring it up and block until it has notified readiness, giving up after 5 seconds
66-svctl -u -w U -T 5000 -- /run/66/scandir/0/foo
Bring it down and let its supervisor exit
66-svctl -dx -- /run/66/scandir/0/foo