Add PKGBUILD and systemd files
This commit is contained in:
parent
52c18329d2
commit
c93dd0fa97
6 changed files with 57 additions and 1 deletions
19
nummi.service
Normal file
19
nummi.service
Normal file
|
@ -0,0 +1,19 @@
|
|||
[Unit]
|
||||
Description=Nummi server (accounting)
|
||||
Requires=nummi.socket
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=nummi
|
||||
Group=nummi
|
||||
RuntimeDirectory=nummi
|
||||
WorkingDirectory=/opt/nummi
|
||||
ExecStart=/usr/bin/gunicorn nummi.asgi:application
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
KillMode=mixed
|
||||
TimeoutStopSec=5
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue