2017-01-06 06:52:05 +00:00
|
|
|
# supervisorctl
|
|
|
|
|
|
|
|
> Supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems.
|
|
|
|
> Supervisorctl is the command-line client piece of the supervisor which provides a shell-like interface.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <http://supervisord.org>.
|
2017-01-06 06:52:05 +00:00
|
|
|
|
2023-07-19 18:34:09 +01:00
|
|
|
- Show the status of a process (or all processes if `process_name` is not specified):
|
|
|
|
|
|
|
|
`supervisorctl status {{process_name}}`
|
|
|
|
|
2017-01-06 06:52:05 +00:00
|
|
|
- Start/stop/restart a process:
|
|
|
|
|
|
|
|
`supervisorctl {{start|stop|restart}} {{process_name}}`
|
|
|
|
|
|
|
|
- Start/stop/restart all processes in a group:
|
|
|
|
|
|
|
|
`supervisorctl {{start|stop|restart}} {{group_name}}:*`
|
|
|
|
|
2023-12-19 12:25:22 +00:00
|
|
|
- Show last 100 bytes of process `stderr`:
|
2017-01-06 06:52:05 +00:00
|
|
|
|
|
|
|
`supervisorctl tail -100 {{process_name}} stderr`
|
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- Keep displaying `stdout` of a process:
|
2017-01-06 06:52:05 +00:00
|
|
|
|
|
|
|
`supervisorctl tail -f {{process_name}} stdout`
|
|
|
|
|
|
|
|
- Reload process config file to add/remove processes as necessary:
|
|
|
|
|
|
|
|
`supervisorctl update`
|