From 7fd4396624209fed27346942d6b90f42b32ff87a Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 14 Sep 2020 13:56:09 +0200 Subject: [PATCH] Make systemd able to stop uwsgi --- doc/ghostream.service | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/ghostream.service b/doc/ghostream.service index 71ee529..2f0b95e 100644 --- a/doc/ghostream.service +++ b/doc/ghostream.service @@ -1,6 +1,6 @@ [Unit] Description=Simple streaming server -After=network.target +After=syslog.target [Service] User=www-data @@ -11,8 +11,12 @@ Environment=LDAP_USER_DN=cn=Utilisateurs,dc=crans,dc=org Environment=SITE_NAME=Crans Stream Environment=SITE_HOSTNAME=stream.crans.org Environment=FAVICON=https://www.crans.org/images/favicon.ico -ExecStart=uwsgi --http-socket 127.0.0.1:8080 --master --plugin python3 --module ghostream:app --static-map /static=/var/local/ghostream/ghostream/static -Restart=always +ExecStart=/usr/bin/uwsgi --http-socket 127.0.0.1:8080 --master --plugin python3 --module ghostream:app --static-map /static=/var/local/ghostream/ghostream/static +Restart=on-failure +KillSignal=SIGQUIT +Type=notify +StandardError=syslog +NotifyAccess=all [Install] WantedBy=multi-user.target