Add irr-api.service
This commit is contained in:
parent
7e4830eb39
commit
242469903a
1 changed files with 20 additions and 0 deletions
20
irr-api.service
Normal file
20
irr-api.service
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=IRR Update API Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=irr-user
|
||||
WorkingDirectory=/opt/irr-update
|
||||
|
||||
ExecStart=/usr/bin/gunicorn --workers 1 --bind 0.0.0.0:5001 irr_api:app
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
# Je kunt de paden hier ook als variabelen meegeven
|
||||
# Environment="ASN_FILE_PATH=/opt/irr-update/asns.txt"
|
||||
# Environment="LOG_FILE_PATH=/opt/irr-update/irr_updater.log"
|
||||
# Environment="SCRIPT_PATH=/opt/irr-update/gen.sh"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue