Skip to content

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

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.

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 is FATAL: it could not be started (supervisord gave up); orange is in BACKOFF: it exits right after start and is retried and exited (unless autorestart=false); grey is stopped although autostart is on and started less than 10 minutes ago (a restart loop shows as BACKOFF/EXITED between probes).

Other warnings under the table (orange) include no supervisord process is running, not read: , read only partly (fail closed at …), is not owned by root or this account, or is writable by group or others, [include] files not expanded: the main configuration file is not trusted, supervisorctl did not answer within 10 s (exit N) and supervisorctl exited with N (exit 0 and 3 are normal: 3 means some programs are not running). Grey notes say why states were not asked, for example states not available: [supervisorctl] serverurl is http://… (not a unix:/// socket), KryoDesk does not connect to it; by hand: …, [supervisorctl] serverurl is not set in the main configuration file, is not a socket, supervisorctl: supervisord requires a username and password on the socket; KryoDesk does not send them.

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

None: KryoDesk has no configuration test for this service.

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

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close