supervisorctl

Supervisorctl Cheatsheet #

supervisorctl is a command-line tool used to control and manage processes under the Supervisor process control system.

General Commands #

Command/OptionExampleDescription
statussupervisorctl statusList the status of all processes
startsupervisorctl start myprocessStart a specific process
stopsupervisorctl stop myprocessStop a specific process
restartsupervisorctl restart myprocessRestart a specific process
reloadsupervisorctl reloadReload the Supervisor configuration

Process Management #

Command/OptionExampleDescription
start allsupervisorctl start allStart all processes
stop allsupervisorctl stop allStop all processes
restart allsupervisorctl restart allRestart all processes
status <process>supervisorctl status myprocessCheck the status of a specific process
tailsupervisorctl tail -f myprocessFollow the logs of a specific process

Configuration and Control #

Command/OptionExampleDescription
updatesupervisorctl updateUpdate Supervisor with any changes to the configuration
addsupervisorctl add myprocessAdd a new process to Supervisor (requires supervisord restart)
removesupervisorctl remove myprocessRemove a process from Supervisor (requires supervisord restart)

Advanced Features #

Command/OptionExampleDescription
readsupervisorctl readRead the current configuration file
stop <group>:<process>supervisorctl stop group1:process1Stop a specific process within a group
start <group>:<process>supervisorctl start group1:process1Start a specific process within a group
restart <group>:<process>supervisorctl restart group1:process1Restart a specific process within a group

This cheatsheet provides the essential supervisorctl commands for managing and controlling processes under Supervisor.

supervisorctl

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.