Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
It shares some of the same goals of programs like launchd, daemontools, and runit. Unlike some of these programs, it is not meant to be run as a substitute for init as “process id 1”. Instead it is meant to be used to control processes related to a project or a customer, and is meant to start like any other program at boot time.
安装
1
sudo apt install supervisor
启动服务
1
service supervisor start
停止服务
1 2 3 4 5
# 方式一 service supervisor stop
# 方式二 supervisorctl shutdown
使用SUPERVISOR
查询帮助
1 2 3 4 5 6 7 8 9
# 帮助命令 supervisorctl help
# 查询结果 default commands (typehelp <topic>): ===================================== add exit open reload restart start tail avail fg pid remove shutdown status update clear maintail quit reread signal stop version