← 返回命令列表

Linux command

supervisord 命令

文本

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

常用示例

Start supervisord

supervisord

Use config file

supervisord -c [/etc/supervisor/supervisord.conf]

Run in foreground

supervisord -n

Debug mode

supervisord -e debug

Check configuration

supervisord -c [supervisord.conf] -t

说明

supervisord is a process control daemon that manages long-running processes, automatically restarting them if they crash or exit unexpectedly. It is widely used to run application servers, background workers, and other services that need reliable process supervision. The configuration file defines programs with their commands, environment variables, user permissions, and restart policies. Programs can be organized into groups for coordinated management. The daemon captures stdout and stderr from managed processes, writing them to log files with configurable rotation. Event listeners allow custom scripts to respond to process state changes such as crashes or transitions. The daemon communicates with supervisorctl through a Unix socket or TCP connection, and provides an optional web interface for process management.

参数

-c _FILE_
Configuration file.
-n
Run in foreground.
-e _LEVEL_
Log level.
-t
Test configuration.
-d _DIR_
Working directory.
-u _USER_
Run as user.
-j _FILE_
Pidfile path.

FAQ

What is the supervisord command used for?

supervisord is a process control daemon that manages long-running processes, automatically restarting them if they crash or exit unexpectedly. It is widely used to run application servers, background workers, and other services that need reliable process supervision. The configuration file defines programs with their commands, environment variables, user permissions, and restart policies. Programs can be organized into groups for coordinated management. The daemon captures stdout and stderr from managed processes, writing them to log files with configurable rotation. Event listeners allow custom scripts to respond to process state changes such as crashes or transitions. The daemon communicates with supervisorctl through a Unix socket or TCP connection, and provides an optional web interface for process management.

How do I run a basic supervisord example?

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

What does -c _FILE_ do in supervisord?

Configuration file.