2017-11-20 15:58:51 +01:00
|
|
|
[Unit]
|
|
|
|
Description=%i uWSGI app
|
|
|
|
After=syslog.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=/usr/bin/uwsgi \
|
|
|
|
--ini /etc/uwsgi/apps-available/%i.ini \
|
|
|
|
--socket /var/run/uwsgi/%i.socket \
|
2018-05-20 14:43:15 +02:00
|
|
|
--chmod-socket=775 \
|
2018-10-06 20:49:54 +02:00
|
|
|
--logto /var/log/uwsgi/app/%i \
|
2018-09-10 23:05:26 +02:00
|
|
|
--processes 4
|
2017-11-20 15:58:51 +01:00
|
|
|
User=%i
|
2017-11-21 13:09:12 +01:00
|
|
|
Group=www-data
|
2017-11-20 15:58:51 +01:00
|
|
|
Restart=on-failure
|
|
|
|
KillSignal=SIGQUIT
|
|
|
|
Type=notify
|
|
|
|
StandardError=syslog
|
|
|
|
NotifyAccess=all
|
2018-05-20 14:43:15 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|