Skip to content

Instantly share code, notes, and snippets.

@docapotamus
Last active December 15, 2015 08:59
Show Gist options
  • Save docapotamus/b092eced402f98519242 to your computer and use it in GitHub Desktop.
Save docapotamus/b092eced402f98519242 to your computer and use it in GitHub Desktop.
Pjuu systemd script
[Unit]
Description=Pjuu
After=network.target
[Service]
PIDFile=/run/pjuu/pid
User=pjuu
Group=pjuu
WorkingDirectory=/pjuu/app
ExecStart=/pjuu/venv/bin/gunicorn --pid /run/pjuu/pid wsgi:application
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment