新建一個「supervisord.service」文件.net
# 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」unix
systemctl enable supervisord
驗證一下是否爲開機啓動:rest
systemctl is-enabled supervisord
問題1 :unix:///tmp/supervisor.sock no such filecode
問題1 :Can't drop privilege as nonroot userserver
運行命令:blog
supervisorctl shutdown