Add systemd service file
This commit is contained in:
parent
6cd4056274
commit
68752b8611
1 changed files with 12 additions and 0 deletions
12
inventory.service
Normal file
12
inventory.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description = "Small parts inventory management system"
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
ExecStart = gunicorn inventory_project.wsgi -b 127.0.0.1:8130 -w 4 -t 15 -p /run/inventory.pid --log-level warning -n inventory
|
||||
ExecReload = kill -HUP $MAINPID
|
||||
PIDFile = /run/inventory.pid
|
||||
Restart = always
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
Loading…
Reference in a new issue