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.
$ supervisord -c <cfg>
$ supervisorctl -c <cfg> reread
$ supervisorctl -c <cfg> update
$ supervisorctl -c <cfg> reload
$ supervisorctl -c <cfg> restart <name1> <name2> <namen>
$ supervisorctl -c <cfg> restart all
$ supervisorctl -c <cfg> start <name1> <name2> <namen>
$ supervisorctl -c <cfg> start all
$ supervisorctl -c <cfg> stop <name1> <name2> <namen>
$ supervisorctl -c <cfg> stop all
$ supervisorctl -c <cfg> status <name1> <name2> <namen>
$ supervisorctl -c <cfg> status
$ 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
.
This blog is about things I encounter while doing web and non-web software development.