exec info mod multi mct kill for com tar

之前看過一篇文章寫如何配置Supervisor開機啟動,這裏做一下記錄

1. 在自己桌面新建一個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

2. 將此文件拷貝到/usr/lib/systemd/system文件夾下

技術分享圖片

3. 執行命令:

systemctl enable supervisord

4. 執行命令測試是否為開機啟動

systemctl is-enabled supervisord

CentOS7 配置Supervisor開機啟動