supervisord.service 373 B

1234567891011121314
  1. [Unit]
  2. Description=Supervisor daemon
  3. [Service]
  4. Type=forking
  5. ExecStart=/usr/bin/supervisord -c /root/sd/pywork/dr_py/manager.conf # 启动命令
  6. ExecStop=/usr/bin/supervisorctl shutdown # 停止程序的命令
  7. ExecReload=/usr/bin/supervisorctl reload # 重启进程的命令
  8. KillMode=process
  9. Restart=on-failure
  10. RestartSec=42s
  11. [Install]
  12. WantedBy=multi-user.target