summaryrefslogtreecommitdiff
path: root/files/gunicorn@.service
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-04-24 17:05:29 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-04-24 17:05:29 +0200
commit538b7ff0c8125a3f412154807e3425127968448f (patch)
treed998b3c00dc019a6ed16625b72a682c10708a5b0 /files/gunicorn@.service
parentInitial commit. (diff)
downloadgunicorn-538b7ff0c8125a3f412154807e3425127968448f.tar.gz
gunicorn-538b7ff0c8125a3f412154807e3425127968448f.tar.xz
Add everything.
Diffstat (limited to 'files/gunicorn@.service')
-rw-r--r--files/gunicorn@.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/files/gunicorn@.service b/files/gunicorn@.service
new file mode 100644
index 0000000..5d85bb4
--- /dev/null
+++ b/files/gunicorn@.service
@@ -0,0 +1,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