mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-01-31 03:52:58 +00:00
Make systemd able to stop uwsgi
This commit is contained in:
parent
4b5c5d282e
commit
7fd4396624
@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Simple streaming server
|
Description=Simple streaming server
|
||||||
After=network.target
|
After=syslog.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=www-data
|
User=www-data
|
||||||
@ -11,8 +11,12 @@ Environment=LDAP_USER_DN=cn=Utilisateurs,dc=crans,dc=org
|
|||||||
Environment=SITE_NAME=Crans Stream
|
Environment=SITE_NAME=Crans Stream
|
||||||
Environment=SITE_HOSTNAME=stream.crans.org
|
Environment=SITE_HOSTNAME=stream.crans.org
|
||||||
Environment=FAVICON=https://www.crans.org/images/favicon.ico
|
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
|
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=always
|
Restart=on-failure
|
||||||
|
KillSignal=SIGQUIT
|
||||||
|
Type=notify
|
||||||
|
StandardError=syslog
|
||||||
|
NotifyAccess=all
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user