mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
29 lines
593 B
Desktop File
29 lines
593 B
Desktop File
[Unit]
|
|
Description=__APP__ uWSGI app
|
|
After=syslog.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=__APP__
|
|
Group=__APP__
|
|
PermissionsStartOnly=true
|
|
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
|
|
RuntimeDirectory=__APP__
|
|
|
|
ExecStartPre=/bin/chown -R __APP__ /var/log/__APP__
|
|
|
|
ExecStart=/usr/bin/uwsgi \
|
|
--ini __INSTALL_DIR__/venv/lib/$weblate_pypath/site-packages/weblate/__APP__.ini \
|
|
--logto /var/log/__APP__/weblate.log
|
|
|
|
|
|
Restart=on-failure
|
|
KillSignal=SIGQUIT
|
|
Type=notify
|
|
StandardError=syslog
|
|
NotifyAccess=all
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|