authentic/debian/authentic2.service

28 lines
733 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 \
--bind unix:/run/%p/%p.sock \
--worker-class=sync \
--workers 5 \
--timeout=60 \
--name %p \
authentic2.wsgi:application
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStartSec=0
PrivateTmp=true
Restart=on-failure
RuntimeDirectory=%p
[Install]
WantedBy=multi-user.target