From e58acd0b29499cec883ee1ae55e940a7abe69c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Wed, 12 Jul 2023 10:31:09 -0400 Subject: [PATCH] Add missing gunicorn-userportal.service --- .../userportal/gunicorn-userportal.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 site/profile/files/userportal/gunicorn-userportal.service diff --git a/site/profile/files/userportal/gunicorn-userportal.service b/site/profile/files/userportal/gunicorn-userportal.service new file mode 100644 index 000000000..5ee9c36d6 --- /dev/null +++ b/site/profile/files/userportal/gunicorn-userportal.service @@ -0,0 +1,17 @@ +[Unit] +Description=gunicorn daemon for the userportal +After=network.target + +[Service] +User=apache +Group=apache +RuntimeDirectory=gunicorn +WorkingDirectory=/var/www/userportal/ +ExecStart=/var/www/userportal-env/bin/gunicorn --bind 127.0.0.1:8001 --workers 2 --timeout 90 userportal.wsgi +ExecReload=/bin/kill -s HUP $MAINPID +KillMode=mixed +TimeoutStopSec=5 +PrivateTmp=true + +[Install] +WantedBy=multi-user.target