bijoe/debian/bijoe.service

27 lines
710 B
SYSTEMD
Raw Normal View History

[Unit]
Description=BiJoe
2019-07-08 21:34:11 +02:00
After=network.target syslog.target postgresql.service
Wants=postgresql.service
[Service]
Environment=BIJOE_SETTINGS_FILE=/usr/lib/%p/debian_config.py
2019-07-08 21:34:11 +02:00
Environment=LANG=C.UTF-8
User=%p
Group=%p
ExecStartPre=/usr/bin/bijoe-manage migrate_schemas --noinput --verbosity 1
ExecStartPre=/usr/bin/bijoe-manage collectstatic --noinput
2021-07-13 15:04:17 +02:00
ExecStartPre=/bin/mkdir -p /var/lib/bijoe/spooler/%m/
ExecStart=/usr/bin/uwsgi --ini /etc/%p/uwsgi.ini --spooler /var/lib/bijoe/spooler/%m/
ExecReload=/bin/kill -HUP $MAINPID
2019-07-08 21:34:11 +02:00
KillSignal=SIGQUIT
TimeoutStartSec=0
PrivateTmp=true
Restart=on-failure
RuntimeDirectory=bijoe
2019-07-08 21:34:11 +02:00
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target