passerelle/debian/passerelle.service

29 lines
814 B
Desktop File

[Unit]
Description=Passerelle
After=network.target postgresql.service
Wants=postgresql.service
[Service]
SyslogIdentifier=uwsgi/%p
Environment=PASSERELLE_SETTINGS_FILE=/usr/lib/%p/debian_config.py
Environment=PASSERELLE_WSGI_TIMEOUT=120
Environment=PASSERELLE_WSGI_WORKERS=5
Environment=LANG=C.UTF-8
User=%p
Group=%p
ExecStartPre=/usr/bin/passerelle-manage migrate_schemas --noinput --verbosity 1
ExecStartPre=/usr/bin/passerelle-manage collectstatic --noinput
ExecStartPre=/bin/mkdir -p /var/lib/passerelle/spooler/%m/
ExecStart=/usr/bin/uwsgi --ini /etc/%p/uwsgi.ini --spooler /var/lib/passerelle/spooler/%m/
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGQUIT
TimeoutStartSec=0
PrivateTmp=true
Restart=on-failure
RuntimeDirectory=passerelle
Type=notify
NotifyAccess=all
[Install]
WantedBy=multi-user.target