← 返回命令列表

Linux command

supervisorctl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show status

supervisorctl status

Start process

supervisorctl start [process_name]

Stop process

supervisorctl stop [process_name]

Restart process

supervisorctl restart [process_name]

Reload configuration

supervisorctl reread && supervisorctl update

Start all processes

supervisorctl start all

Tail process log

supervisorctl tail -f [process_name]

Interactive shell

supervisorctl

说明

supervisorctl is the command-line client for controlling processes managed by the supervisord daemon. It provides commands to start, stop, restart, and monitor long-running processes, as well as view their status and log output. The status command displays all managed processes with their state (RUNNING, STOPPED, FATAL), PID, and uptime. Individual processes or process groups can be controlled independently. The reread command detects configuration file changes, and update applies those changes without restarting unaffected processes. The tool can operate in single-command mode or as an interactive shell with tab completion. The tail command streams process stdout/stderr output in real time, useful for debugging application issues. Configuration changes typically follow a reread-then-update workflow to safely apply modifications.

参数

status
Show process status.
start _NAME_
Start process.
stop _NAME_
Stop process.
restart _NAME_
Restart process.
reread
Reload config files.
update
Apply config changes.
tail _NAME_
Show process output. Use -f to follow, stderr suffix for stderr stream.
pid _NAME_
Display PID of the process.
signal _SIG NAME_
Send a signal (e.g. HUP, TERM) to the process.
clear _NAME_
Clear the process log files.
-c _FILE_
Path to the supervisord configuration file.
-s _URL_
Supervisor server URL (e.g. unix:///path or http://host:port).
-u _USER_ / -p _PASSWORD_
Username and password for server authentication.

FAQ

What is the supervisorctl command used for?

supervisorctl is the command-line client for controlling processes managed by the supervisord daemon. It provides commands to start, stop, restart, and monitor long-running processes, as well as view their status and log output. The status command displays all managed processes with their state (RUNNING, STOPPED, FATAL), PID, and uptime. Individual processes or process groups can be controlled independently. The reread command detects configuration file changes, and update applies those changes without restarting unaffected processes. The tool can operate in single-command mode or as an interactive shell with tab completion. The tail command streams process stdout/stderr output in real time, useful for debugging application issues. Configuration changes typically follow a reread-then-update workflow to safely apply modifications.

How do I run a basic supervisorctl example?

Run `supervisorctl status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does status do in supervisorctl?

Show process status.