Supervisor
Common parts of every card (states, backoff, Unit and ExecReload, Test config, manual commands) are described in Monitor window.
| Detected by | systemd units supervisor, supervisord or binaries supervisord |
| Read every | 60 s while the Monitor window shows the tab |
| Active probe | yes, off by default |
| Test config | none |
| Manual commands | 1 |
What the card reads and shows
Section titled “What the card reads and shows”Supervisor: supervisord processes, the [program:x] (and [fcgi-program:x], [eventlistener:x]) sections of its configuration and of the files of [include] files, filtered on the host to a closed list of keys (of command only the first word, the binary), and as the active probe supervisorctl status all reduced on the host to name, state, PID and uptime.
Card layout
Section titled “Card layout”Configuration: each file read with its state, and the [supervisorctl] serverurl. Without
the active probe: States need the active probe (supervisorctl status all).
| Column | Content |
|---|---|
| program | Section name; (fcgi-program) or (eventlistener) for other kinds. |
| state | From supervisorctl status all, one line per process (with its name when numprocs > 1), pid and uptime. Green RUNNING, red FATAL, orange BACKOFF, EXITED, UNKNOWN, grey other states (STOPPED, STARTING, …); — without the probe. |
| binary | First word of command. |
| user, autostart, autorestart | As set in the section. |
Per process: red autorestart=false); grey
Other warnings under the table (orange) include no supervisord process is running,
Active probe
Section titled “Active probe”Runs: supervisorctl -c <private file> status all every minute while the Monitor is open (trusted supervisorctl, run under env -i with PATH=/usr/bin:/bin, GNU or BusyBox timeout 10 s, stdin /dev/null). supervisord’s own configuration is never passed to supervisorctl: the probe writes a file (0600, in a mktemp -d 0700 directory under $XDG_RUNTIME_DIR/kryodesk, removed when the run ends) holding only [supervisorctl] and serverurl=unix://<socket>. Only when the main configuration file is owned by root or this account and not writable by group or others, its [supervisorctl] serverurl is an explicit unix:/// socket, the path is a socket owned by root or by the effective uid of the trusted supervisord (every directory on the way owned by root, this account or supervisord and not writable by group or others) and $XDG_RUNTIME_DIR is a 0700 directory of this account. An http:// serverurl is never asked (the card shows the command to run by hand). On the host the answer is reduced to program name, state, PID and uptime; the text after FATAL/BACKOFF (spawn errors) and any other line stay on the host, error lines only as counts by kind (authentication, refused, permission denied, no socket)
Traces on the host: one connection to supervisord’s unix socket per run, without username or password (a socket that requires them answers with an authentication error, shown as such); one file and directory under $XDG_RUNTIME_DIR/kryodesk for the time of the run (the directory kryodesk stays, empty); supervisord logs nothing for status at its default log level
Test config
Section titled “Test config”None: KryoDesk has no configuration test for this service.
Manual commands
Section titled “Manual commands”KryoDesk shows these with Copy / Paste to terminal and never runs them.
| Label | Command | What it does |
|---|---|---|
| Program states (supervisorctl) | supervisorctl -c <path> status all |
supervisorctl with supervisord’s configuration: connects to <url>, sends the username and password of [supervisorctl] when set and imports the modules of [ctlplugin:x] sections; KryoDesk never runs it |