summaryrefslogtreecommitdiff
path: root/files/gunicorn@.service
blob: 5d85bb48740633b8c19dd2e579f5a643d7221b25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=%s through the Gunicorn WSGI server
After=network.target

[Service]
# User and group not set since they are simpler to configure in the
# config file
Type=simple
PrivateDevices=yes
PrivateTmp=true
ExecStart=gunicorn --config /var/lib/gunicorn/%s.conf.py
ExecReload=/bin/kill -s HUP $MAINPID

[Install]
WantedBy=multi-user.target