20 lines
No EOL
485 B
Desktop File
20 lines
No EOL
485 B
Desktop File
[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 |