配置Supervisor开机启动

 

配置Supervisor开机启动:

新建一个“supervisord.service”文件

# dservice for systemd (CentOS 7.0+) 
# by ET-CS (https://github.com/ET-CS) 
[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

将文件拷贝至:“/usr/lib/systemd/system/supervisord.service”

systemctl enable supervisord

clip_image001

验证一下是否为开机启动:systemctl is-enabled supervisord

clip_image002

posted @ 2020-12-21 10:13  逐梦~前行  阅读(211)  评论(0编辑  收藏  举报