Skip to content

Instantly share code, notes, and snippets.

@eeertekin
Created May 14, 2016 13:48
Show Gist options
  • Save eeertekin/c520a53cb1f19a2d6a54454be560ee5d to your computer and use it in GitHub Desktop.
Save eeertekin/c520a53cb1f19a2d6a54454be560ee5d to your computer and use it in GitHub Desktop.
## /lib/systemd/system/supervisord.service
## systemctl enable supervisord.service
## systemctl start supervisord.service
[Unit]
Description=Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown
ExecReload=/usr/bin/supervisorctl $OPTIONS reload
KillMode=process
Restart=on-failure
RestartSec=50s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment