2017-05-14 17:21:57 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Chrono
|
2017-05-27 19:19:03 +02:00
|
|
|
After=network.target syslog.target postgresql.service
|
2017-05-14 17:21:57 +02:00
|
|
|
Wants=postgresql.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=CHRONO_SETTINGS_FILE=/usr/lib/%p/debian_config.py
|
2018-10-07 12:33:50 +02:00
|
|
|
Environment=LANG=C.UTF-8
|
2017-05-14 17:21:57 +02:00
|
|
|
User=%p
|
|
|
|
Group=%p
|
|
|
|
ExecStartPre=/usr/bin/chrono-manage migrate_schemas --noinput
|
|
|
|
ExecStartPre=/usr/bin/chrono-manage collectstatic --noinput
|
2017-05-27 19:19:03 +02:00
|
|
|
ExecStart=/usr/bin/uwsgi --ini /etc/%p/uwsgi.ini
|
2017-05-14 17:21:57 +02:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2017-05-27 19:19:03 +02:00
|
|
|
KillSignal=SIGQUIT
|
2019-11-20 20:57:13 +01:00
|
|
|
TimeoutStartSec=0
|
2017-05-14 17:21:57 +02:00
|
|
|
PrivateTmp=true
|
|
|
|
Restart=on-failure
|
2017-05-27 18:21:25 +02:00
|
|
|
RuntimeDirectory=chrono
|
2017-05-27 19:19:03 +02:00
|
|
|
Type=notify
|
|
|
|
StandardError=syslog
|
|
|
|
NotifyAccess=all
|
2017-05-14 17:21:57 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|