Update uwsgi helper

This commit is contained in:
Josué Tille
2018-09-05 20:43:08 +02:00
parent b88c7adfec
commit e345831487
5 changed files with 41 additions and 31 deletions

View File

@@ -1,3 +1,4 @@
[Unit]
Description=%i uWSGI app
After=syslog.target
@@ -6,8 +7,7 @@ After=syslog.target
ExecStart=/usr/bin/uwsgi \
--ini /etc/uwsgi/apps-available/%i.ini \
--socket /var/run/uwsgi/%i.socket \
--chmod-socket=775 \
--logto /var/log/uwsgi/app/%i
--logto /var/log/uwsgi/%i/%i.log
User=%i
Group=www-data
Restart=on-failure
@@ -15,6 +15,3 @@ KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target

11
conf/uwsgi-app@.socket Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=Socket for uWSGI app %i
[Socket]
ListenStream=/var/run/uwsgi/%i.socket
SocketUser=%i
SocketGroup=www-data
SocketMode=0775
[Install]
WantedBy=sockets.target