Skip to content

Instantly share code, notes, and snippets.

@viclyapunov
Forked from tonyseek/supervisord.service
Last active August 29, 2015 14:22
Show Gist options
  • Save viclyapunov/1d8874ad95e29e2b0c04 to your computer and use it in GitHub Desktop.
Save viclyapunov/1d8874ad95e29e2b0c04 to your computer and use it in GitHub Desktop.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf
ExecReload=/usr/bin/supervisorctl reload
ExecStop=/usr/bin/supervisorctl shutdown
[Install]
WantedBy=multi-user.target
@viclyapunov
Copy link
Author

a handy service template to use supervisord with systemd.

no modification is required, it just works

  1. create a file /etc/systemd/system/supervisord.service
  2. paste the code
  3. run as root: systemctl enable /etc/systemd/system/supervisord.service
  4. run as root: systemctl start supervisord.service

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