Skip to content

Instantly share code, notes, and snippets.

@markuskont
Created February 6, 2018 10:04
Show Gist options
  • Save markuskont/b626dc717af111d9f2fb082d9408683b to your computer and use it in GitHub Desktop.
Save markuskont/b626dc717af111d9f2fb082d9408683b to your computer and use it in GitHub Desktop.
[Unit]
Description=scirius daemon
After=network.target
[Service]
User=www-data
Group=www-data
WorkingDirectory=/usr/share/python/scirius
ExecStart=/usr/share/python/scirius/bin/gunicorn --log-syslog -t 600 -w 4 --bind unix:/tmp/scirius.sock scirius.wsgi:application
Environment=VIRTUAL_ENV=/usr/share/python/scirius
Environment=GIT_PYTHON_GIT_EXECUTABLE=/usr/bin/git
Environment=PATH=$VIRTUAL_ENV/bin:$PATH
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment