Skip to content

Instantly share code, notes, and snippets.

@ivandeex
Created July 24, 2015 20:32
Show Gist options
  • Save ivandeex/2a1ad64ad27dedff2b8c to your computer and use it in GitHub Desktop.
Save ivandeex/2a1ad64ad27dedff2b8c to your computer and use it in GitHub Desktop.
# supervisord service for sysstemd (CentOS 7.0+)
# by ET-CS (https://github.com/ET-CS)
[Unit]
Description=Supervisor daemon
[Exec]
User=vanko
WorkDir=/home/vanko
[Service]
ExecStart=/usr/bin/supervisord
ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown
ExecReload=/usr/bin/supervisorctl $OPTIONS reload
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment