Comparison · vs supervisord

RunWisp vs supervisord: process supervision without Python.

A real supervisord.conf [program:*] block next to the equivalent runwisp.toml service. Replicas, restart backoff, graceful stop, reload semantics.

Verdict

Should you switch?

The 10-second version. Skim, decide, scroll down for the receipts.

Switch to RunWisp if

  • You'd rather not ship Python on every supervised box.
  • You want every restart as a queryable run row, not a log tail.
  • Replicas should take one number, not a process_name template.
  • You want a configurable restart curve, not fixed +1s steps.
  • You also have scheduled jobs that don't fit a [program:*] mould.
  • Stop should signal the whole process group by default, not just the parent.

Stay on supervisord if

  • You apply one program's edit with supervisorctl update api-worker and hold back the rest of the file.
  • You lean on the event-listener fan-out for lifecycle hooks.
  • Existing tooling speaks the XML-RPC API today.
  • Python's already on the box; one fewer artifact to ship.
Head to head

Yes / no, at a glance

Yes / no — and both columns win on something.

Capability supervisord RunWisp
Runtime-free single binary ✗needs Python ✓
Always-on services ✓ ✓
Scheduled jobs (cron-shaped) ✗ ✓[tasks.*]
Replicas in one config ✓numprocs ✓instances = N
Per-replica index in the command ✓%(process_num)s ✓$RUNWISP_INSTANCE_INDEX
Configurable restart-backoff curve ~+1s per retry, startup only ✓constant / linear / exp
FATAL after repeated fast-fails ✓startretries ✓restart_attempts
Uptime threshold for a good start ✓startsecs ✓healthy_after
Health-check command ~superlance add-on ✓health_check
Per-run history rows ✗ ✓
Web UI ~status page, no history ✓
TUI ✗supervisorctl is a CLI ✓
Stop signals the whole process group ✗opt-in: stopasgroup ✓default
Coalesced failure notifications ✗ ✓
Config reload restarts only what changed ✓reread + update ✓reload
Apply one program's edit, hold back the rest ✓update ✗reload applies the whole file
Restart policy by exit code ✓exitcodes ✓failures = ["23"] + on_failure
Event-listener fan-out ✓ ✗
Documented RPC API ✓XML-RPC ~REST + OpenAPI
Per-program user identity ✓ ✓user =
Trade-offs

Pros & cons

What supervisord still does better

  • supervisorctl update api-worker applies one program's edit and holds back the rest of the file.
  • Documented event-listener subprocess protocol for lifecycle side effects.
  • Long tail of XML-RPC clients in every language.
  • Decades of Puppet, Ansible, and SaltStack modules assume it exists.

What RunWisp adds

  • One static Go binary; no Python, no venv, no pip.
  • runwisp import supervisord converts an existing config into an annotated TOML with # TODOs.
  • Every replica start and exit is a row in the Web UI with exit code and captured streams.
  • Restart backoff you pick (constant, linear, exponential), plus restart_attempts before FATAL and an optional health_check command.
  • Tasks (cron, on_overlap, retries) split from services at the schema level.
  • depends_on for health-gated boot order and reverse-order shutdown.
  • Stop signals the whole process group by default.
  • Slack, Telegram, Discord, ntfy, email and webhook notifiers coalesce flapping into one alert plus a summary.
The simple case

The simple case

Keep one API process alive. Four INI lines vs one TOML stanza.

supervisord.conf
; /etc/supervisor/conf.d/api.conf
[program:api]
command = /usr/local/bin/api
user    = api
autostart    = true
autorestart  = true
stdout_logfile = /var/log/api.log
redirect_stderr = true
runwisp.toml
# runwisp.toml
[services.api]
run  = "/usr/local/bin/api"
user = "api"
Production-grade

The version that runs in prod

Three replicas of a queue worker. numprocs and process_name templating on the left, one service with instances = 3 on the right.

supervisord.conf (production)
; /etc/supervisor/conf.d/api-worker.conf, three replicas, production
[program:api-worker]
command       = /usr/local/bin/worker
process_name  = %(program_name)s_%(process_num)02d
numprocs      = 3
user          = api
autostart     = true
autorestart   = true
startsecs     = 5            ; uptime before considered "successfully started"
startretries  = 5            ; give up after this many start failures
stopsignal    = TERM
stopwaitsecs  = 20           ; finish the in-flight job
stdout_logfile  = /var/log/api-worker_%(process_num)02d.log
redirect_stderr = true
runwisp.toml (production)
# runwisp.toml, three replicas, production
[services.api-worker]
description      = "Three always-on workers consuming the same job queue"
run              = "/usr/local/bin/worker"
instances        = 3                # each gets RUNWISP_INSTANCE_INDEX
user             = "api"
restart_delay    = "2s"
restart_backoff  = "exponential"    # supervisord: fixed +1s steps
healthy_after    = "5s"             # uptime before a start counts as stable
restart_attempts = 5                # fast-fail this many times, then go FATAL
stop_signal      = "SIGTERM"
graceful_stop    = "20s"            # finish the in-flight job; keep [daemon] shutdown_timeout above this
keep_runs        = 500
notify           = ["slack-ops"]
Migration

Migration cheat sheet

supervisord field on the left, runwisp.toml field on the right. `runwisp import supervisord` does most of it for you.

supervisord RunWisp
[program:api] [services.api] (always-on) or [tasks.api]
command = run =, a shell line: drop the bash -c wrapper
numprocs = 3 instances = 3
%(process_num)s $RUNWISP_INSTANCE_INDEX in the command (counts from 0)
autorestart = true Implicit; services restart after any exit
autorestart = unexpected + exitcodes restart = "on_failure"; list failing exits in failures by hand
startsecs = 5 healthy_after = "5s"
startretries = 5 restart_attempts = 5 (then FATAL)
priority = 999 priority (boot order) or depends_on
stopsignal = TERM stop_signal = "SIGTERM"
stopwaitsecs = 20 graceful_stop = "20s"
stopasgroup / killasgroup Default (process-group-wide)
stdout_logfile = … Captured per run; download from Web UI
user = api user = "api" (daemon running as root), sets HOME too
supervisorctl status runwisp status, Web UI, or runwisp tui
supervisorctl reread + update runwisp reload (restarts only changed services, validate-first)
Gotchas

Gotchas

Services aren't cron-driven

A [services.*] block with a cron field is rejected at load. supervisord's "program that sleeps until the next minute" maps to [tasks.*] with cron = "..." and on_overlap = "skip".

Names share one namespace

[tasks.api] and [services.api] can't coexist. Migrating a fleet of [program:*] blocks where the same name is reused means a one-time disambiguation pass.

Replicas differ by one env var

Each instance gets RUNWISP_INSTANCE_INDEX (0, 1, 2, …), so %(process_num)s becomes $RUNWISP_INSTANCE_INDEX in the command. Everything else is shared. If replicas need different config files or ports, derive them from the index or declare N separate services.

Reload takes the whole file

There's no runwisp reload api-worker. runwisp reload (or SIGHUP) applies every edit in runwisp.toml at once. It validates first, so a bad edit is rejected and the running set is untouched, and only services whose process changed (run, env, user, instances and the like) restart.

FAQ

FAQ

What are the restart-on-failure semantics; does instances behave like autorestart?
Services default to restart = "always". An instance that exits is restarted after restart_delay, growing by the backoff curve you pick (constant, linear or exponential). An instance that stays up for healthy_after resets its counter. One that keeps exiting before healthy_after gets restart_attempts failed starts in a row, then goes FATAL: it stops restarting, records a start_failed run and fires an alert (supervisord's startretries → FATAL). For the supervisord default autorestart=unexpected, set restart = "on_failure".
Can each replica get its own environment, like supervisord's process_num?
Replicas share one environment, with one difference: each instance gets RUNWISP_INSTANCE_INDEX (0, 1, 2, …). Use $RUNWISP_INSTANCE_INDEX where you used %(process_num)s. If replicas need different config files or ports, derive them from the index in run, or declare N separate services.
Are logs split per replica?
Each instance is its own run in history, shown as api-worker#1, #2, #3 in the Web UI and TUI, with its own exit code and captured output. Log size and retention settings are shared by the service.
My supervisord command is wrapped in bash -c. What does it become?
Just the inside. supervisord starts command without a shell, so &&, pipes and $VAR need a bash -c wrapper there. RunWisp runs every run line through /bin/sh -c, so command=bash -c 'cd /srv/api && exec ./api' becomes run = "cd /srv/api && exec ./api". Set shell = "/bin/bash" if the line uses bash-only syntax. runwisp import supervisord keeps the wrapper as it is, which also works.
supervisorctl stop left child processes running. Why?
supervisord sends stopsignal to the program's main process only. Anything it started, like the workers behind a sh -c wrapper or a Java launcher, keeps running unless you set stopasgroup=true, which signals the whole group and turns on killasgroup too. killasgroup=true on its own only widens the final SIGKILL after stopwaitsecs. In our test on supervisord 4.2.5, stopping sh -c 'sleep 1001 & sleep 1002 & wait' left both sleeps running. RunWisp starts each run in its own process group, sends stop_signal to the whole group and SIGKILLs whatever is left after graceful_stop (5s by default). The same command under RunWisp 1.11 left nothing behind. A program that daemonizes itself (setsid, a double fork) leaves the group under either tool, so run it in the foreground.
supervisord runs my program as user=api, but HOME is still /root. Does RunWisp do the same?
No. supervisord switches the user but leaves the environment alone, so HOME, USER and LOGNAME keep the values supervisord started with, and tools that read ~/.ssh or ~/.config look in root's home. RunWisp sets HOME, USER and LOGNAME for the account in user = "api". In our test, the same echo printed HOME=/root under supervisord and HOME=/home/deploy under RunWisp. Neither runs a login shell, so variables from .bashrc or a virtualenv's activate script belong in env or env_file.
reread, update, restart or reload: which one applies a supervisord config change?
update. reread only reports what changed in the files. update applies it: it adds and removes programs and restarts the ones whose config changed. restart stops and starts a program with the config supervisord already has, so an edit doesn't take. reload (or SIGHUP) restarts supervisord itself and every program with it. RunWisp has one command for the update case: runwisp reload (or SIGHUP) validates the whole runwisp.toml, then adds, removes and changes services in place. Only services whose process changed restart; in our test, editing one service's env restarted that service and left the other on its old PID. A bad edit is rejected and nothing changes. A service you stopped by hand stays stopped.
supervisord logs 'CRIT uncaptured python exception' with Illegal seek. Is my program crashing?
No. With stdout_logfile=/dev/stdout, supervisord tries to rotate the log, and a pipe can't be rotated. On supervisord 4.2.5 with its output piped, which is how docker logs reads a container started without -t, every line the program printed came with a CRIT traceback ending in doRollover, and the program kept running. Set stdout_logfile_maxbytes=0 on the program, plus stderr_logfile_maxbytes=0 if stderr goes to /dev/stderr. logfile_maxbytes=0 in [supervisord] covers only supervisord's own log. In RunWisp, log_output = true under [daemon] prints each line as worker | line to the daemon's stdout, and each run still keeps its full log. The official Docker image turns it on.
Can I run RunWisp and supervisord side-by-side during migration?
Yes, as long as no program runs under both. Stop a program in supervisord before you start it in RunWisp, or two copies fight over ports and queues. Migrate one [program:*] at a time; roll back by reversing the same steps.
Does RunWisp support supervisord's event listeners?
No. runwisp import supervisord flags [eventlistener] and [fcgi-program] sections so you can replace them another way. Failure alerts, health checks and boot order (depends_on) cover the common listener jobs; for anything else, keep supervisord.
Get started
GPL 3.0 · no accounts · free to self-host

One binary supervising your processes. No Python in sight.

Run runwisp import supervisord on your config, check the TODOs, and watch each replica come up as its own run in the Web UI.

Install in 30 seconds
curl -fsSL https://get.runwisp.com | sh