LinuxCommandLibrary

supervisord

TLDR

Start supervisord

$ supervisord
copy
Use config file
$ supervisord -c [/etc/supervisor/supervisord.conf]
copy
Run in foreground
$ supervisord -n
copy
Debug mode
$ supervisord -e debug
copy
Check configuration
$ supervisord -c [supervisord.conf] -t
copy

SYNOPSIS

supervisord [-c config] [-n] [-e level] [options]

DESCRIPTION

supervisord is a process control daemon. It manages long-running processes and restarts them on failure.
Configuration defines processes. Program sections specify commands and settings.
Auto-restart ensures reliability. Crashed processes restart automatically.
Process groups organize related services. Start and stop together.
Logging captures stdout/stderr. Rotation configurable.
Event listeners enable custom actions. Respond to process events.

PARAMETERS

-c FILE

Configuration file.
-n
Run in foreground.
-e LEVEL
Log level.
-t
Test configuration.
-d DIR
Working directory.
-u USER
Run as user.
-j FILE
Pidfile path.

CAVEATS

Not a replacement for init systems. Single point of failure. Needs its own monitoring.

HISTORY

Supervisor was created by Chris McDonough (Agendaless Consulting). It provides simple process management for Python applications and beyond.

SEE ALSO

Copied to clipboard