Supervisorctl Cheatsheet
#
supervisorctl
is a command-line tool used to control and manage processes under the Supervisor process control system.
General Commands
#
Command/Option | Example | Description |
---|
status | supervisorctl status | List the status of all processes |
start | supervisorctl start myprocess | Start a specific process |
stop | supervisorctl stop myprocess | Stop a specific process |
restart | supervisorctl restart myprocess | Restart a specific process |
reload | supervisorctl reload | Reload the Supervisor configuration |
Process Management
#
Command/Option | Example | Description |
---|
start all | supervisorctl start all | Start all processes |
stop all | supervisorctl stop all | Stop all processes |
restart all | supervisorctl restart all | Restart all processes |
status <process> | supervisorctl status myprocess | Check the status of a specific process |
tail | supervisorctl tail -f myprocess | Follow the logs of a specific process |
Configuration and Control
#
Command/Option | Example | Description |
---|
update | supervisorctl update | Update Supervisor with any changes to the configuration |
add | supervisorctl add myprocess | Add a new process to Supervisor (requires supervisord restart) |
remove | supervisorctl remove myprocess | Remove a process from Supervisor (requires supervisord restart) |
Advanced Features
#
Command/Option | Example | Description |
---|
read | supervisorctl read | Read the current configuration file |
stop <group>:<process> | supervisorctl stop group1:process1 | Stop a specific process within a group |
start <group>:<process> | supervisorctl start group1:process1 | Start a specific process within a group |
restart <group>:<process> | supervisorctl restart group1:process1 | Restart a specific process within a group |
This cheatsheet provides the essential supervisorctl
commands for managing and controlling processes under Supervisor.