nummi/nummi.service

21 lines
480 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
2022-05-21 18:08:06 +02:00
ExecStartPre=/usr/bin/python manage.py migrate
ExecStartPre=/usr/bin/python manage.py collectstatic
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