Created
November 18, 2015 15:41
-
-
Save lukecampbell/632318f48b90eb231b91 to your computer and use it in GitHub Desktop.
Systemd for Supervisor with Virtualenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=supervisord - Supervisor process control system for UNIX | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
Type=forking | |
User=dev | |
ExecStart=/bin/bash -c 'cd /home/dev/code; source /home/dev/.virtualenvs/comt/bin/activate; /home/dev/.virtualenvs/comt/bin/supervisord -c /home/dev/code/supervisord.conf' | |
ExecReload=/bin/bash -c 'source /home/dev/.virtualenvs/comt/bin/activate; /home/dev/.virtualenvs/comt/bin/supervisorctl -c /home/dev/code/supervisord.conf reload ' | |
ExecReload=/bin/bash -c 'source /home/dev/.virtualenvs/comt/bin/activate; /home/dev/.virtualenvs/comt/bin/supervisorctl -c /home/dev/code/supervisord.conf shutdown ' | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment