authentic/debian/authentic2.service

26 lines
646 B
Desktop File

[Unit]
Description=Authentic 2
After=network.target postgresql.service
Wants=postgresql.service
[Service]
Environment=AUTHENTIC2_SETTINGS_FILE=/usr/lib/%p/debian_config.py
Environment=LANG=C.UTF-8
User=authentic2
Group=authentic2
ExecStartPre=/usr/bin/authentic2-manage migrate --noinput
ExecStartPre=/usr/bin/authentic2-manage collectstatic --noinput
ExecStart=/usr/lib/authentic2/launch-authentic2.sh --ini /etc/%p/%p-uwsgi.ini
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGQUIT
TimeoutStartSec=0
PrivateTmp=true
Restart=on-failure
RuntimeDirectory=%p
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target