Supervisord的安装与开机启动

来自一搜便知
跳到导航 跳到搜索

安装

yum -y install supervisord

开机启动

/usr/lib/systemd/system/supervisord.service 的配置文件

[Unit]
Description=Process Monitoring and Control Daemon


[Service]
Type=forking
ExecStart=/usr/bin/python2 /usr/bin/supervisord -c /etc/supervisord.conf
ExecStop=/usr/bin/supervisorctl shutdown
ExecReload=/usr/bin/supervisorctl reload
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target

相关命令

systemctl status supervisord
systemctl restart supervisord
systemctl stop supervisord
systemctl start supervisord
systemctl enable supervisord