CentOS配置Supervisor开机自动启动

修改/usr/lib/systemd/system下的supervisord.service

内容如下

[Unit]
Description=Supervisor daemon

[Service]
Type=forking
ExecStart=/usr/bin/supervisord -c /etc/supervisor/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 enable supervisord 

 

上一篇:Ubuntu16.04部署supervisor


下一篇:flask + supervisor + gunicorn