1. b.93z.org
  2. Notes

Supervisor in 5 minutes

Company I mentioned uses Supervisor to manage processes. This tool is easy to use, but developers tend to have problems with it, so they email me asking why things they tried do not work. Therefore I decided to gather common commands for future reference.

Run Supervisor

$ supervisord -c <cfg>

Reload configuration files

$ supervisorctl -c <cfg> reread

Reload config and add/remove as necessary

$ supervisorctl -c <cfg> update

Restart Supervisor

$ supervisorctl -c <cfg> reload

Restart processes by names

$ supervisorctl -c <cfg> restart <name1> <name2> <namen>

Restart all processes

$ supervisorctl -c <cfg> restart all

Start processes by names

$ supervisorctl -c <cfg> start <name1> <name2> <namen>

Start all processes

$ supervisorctl -c <cfg> start all

Stop processes by names

$ supervisorctl -c <cfg> stop <name1> <name2> <namen>

Stop all processes

$ supervisorctl -c <cfg> stop all

Get statuses of processes by names

$ supervisorctl -c <cfg> status <name1> <name2> <namen>

Get status of all processes

$ supervisorctl -c <cfg> status

Open Supervisor shell

$ supervisorctl -c <cfg>

Use help command to list help topics, quit to close shell.

Example of <cfg>: /home/user/conf/supervisor.conf. Examples of names (<name1>, etc.): abc, some-name, foobarbaz.

© 2008–2017 93z.org