diff --git a/supervisord.service b/supervisord.service new file mode 100644 index 0000000..41809ef --- /dev/null +++ b/supervisord.service @@ -0,0 +1,15 @@ +[Unit] +Description=Supervisor process control system for UNIX +Documentation=http://supervisord.org +After=network.target + +[Service] +ExecStart=/usr/local/bin/supervisord -n -c /root/POC-Java-www/pocwww/supervisor.conf +ExecStop=/usr/local/bin/supervisorctl $OPTIONS shutdown +ExecReload=/usr/local/bin/supervisorctl $OPTIONS reload +KillMode=process +Restart=on-failure +RestartSec=50s + +[Install] +WantedBy=multi-user.target