Skip to content

Instantly share code, notes, and snippets.

@macta
Last active May 27, 2018 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macta/9454c78f2d78a5fc2b41a38834ed03dc to your computer and use it in GitHub Desktop.
Save macta/9454c78f2d78a5fc2b41a38834ed03dc to your computer and use it in GitHub Desktop.
[Unit]
Description=Supervisor daemon
Documentation=http://supervisord.org
After=network.target
[Service]
ExecStart=/usr/local/bin/supervisord -n -c /etc/supervisor/supervisord.conf
ExecStop=/usr/local/bin/supervisorctl $OPTIONS shutdown
ExecReload=/usr/local/bin/supervisorctl $OPTIONS reload
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target
@macta
Copy link
Author

macta commented May 27, 2018

Copy this control file into /etc/systemd/system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment