diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-04-24 17:05:29 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-04-24 17:05:29 +0200 |
commit | 538b7ff0c8125a3f412154807e3425127968448f (patch) | |
tree | d998b3c00dc019a6ed16625b72a682c10708a5b0 /files/gunicorn@.service | |
parent | Initial commit. (diff) | |
download | gunicorn-538b7ff0c8125a3f412154807e3425127968448f.tar.gz gunicorn-538b7ff0c8125a3f412154807e3425127968448f.tar.xz |
Add everything.
Diffstat (limited to '')
-rw-r--r-- | files/gunicorn@.service | 15 |
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 |