2019-02-25 23:09:47 +01:00
|
|
|
[Unit]
|
|
|
|
Description=__APP__ uWSGI app
|
|
|
|
After=syslog.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
User=__APP__
|
2020-10-28 12:02:15 +01:00
|
|
|
Group=__APP__
|
2019-02-25 23:09:47 +01:00
|
|
|
PermissionsStartOnly=true
|
|
|
|
|
|
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
|
|
|
|
RuntimeDirectory=__APP__
|
|
|
|
|
2019-08-28 00:09:23 +02:00
|
|
|
ExecStartPre=/bin/chown -R __APP__ /var/log/__APP__
|
2019-02-25 23:09:47 +01:00
|
|
|
|
|
|
|
ExecStart=/usr/bin/uwsgi \
|
2024-01-20 10:59:49 +01:00
|
|
|
--ini /etc/uwsgi/apps-available/__APP__.ini \
|
2020-10-28 12:02:15 +01:00
|
|
|
--logto /var/log/__APP__/weblate.log
|
2019-02-25 23:09:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
KillSignal=SIGQUIT
|
|
|
|
Type=notify
|
2024-01-20 11:55:04 +01:00
|
|
|
StandardError=inherit
|
2019-02-25 23:09:47 +01:00
|
|
|
NotifyAccess=all
|
|
|
|
|
|
|
|
[Install]
|
2019-08-23 08:32:02 +02:00
|
|
|
WantedBy=multi-user.target
|