1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00
weblate_ynh/conf/weblate.service

33 lines
653 B
SYSTEMD
Raw Normal View History

[Unit]
Description=__APP__ uWSGI app
After=syslog.target
[Service]
Type=forking
User=__APP__
Group=www-data
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__
ExecStart=/usr/bin/uwsgi \
--ini /etc/uwsgi/apps-available/__APP__.ini \
--socket /var/run/__APP__/socket \
--chmod-socket=775 \
2019-08-28 00:09:23 +02:00
--logto /var/log/__APP__/weblate.log \
--processes 4
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
2019-08-23 08:32:02 +02:00
WantedBy=multi-user.target