nummi/pkgbuild/nummi.service

22 lines
538 B
SYSTEMD
Raw Normal View History

2022-05-21 12:12:34 +02:00
[Unit]
Description=Nummi server (accounting)
After=network.target
[Service]
2022-05-21 16:07:12 +02:00
Type=simple
2022-05-21 12:12:34 +02:00
User=nummi
Group=nummi
RuntimeDirectory=nummi
2022-05-21 12:34:48 +02:00
WorkingDirectory=/usr/share/webapps/nummi
Environment=NUMMI_CONFIG=/etc/nummi/config.toml
2022-05-21 18:08:06 +02:00
ExecStartPre=/usr/bin/python manage.py migrate
2022-05-21 18:15:34 +02:00
ExecStartPre=/usr/bin/python manage.py collectstatic --noinput
2022-05-21 16:09:40 +02:00
ExecStart=/usr/bin/uvicorn nummi.asgi:application --uds /run/nummi/nummi.socket
2022-05-21 12:12:34 +02:00
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
[Install]
WantedBy=multi-user.target