add systemd service file and install doc
This commit is contained in:
18
gas-station-exporter.service
Normal file
18
gas-station-exporter.service
Normal file
@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Prometheus gas station exporter for fuel prices
|
||||
Documentation=https://git.mosad.xyz/localhorst/gas-station-exporter
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
After=wg-quick@wg0.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
User=prometheus
|
||||
WorkingDirectory=/usr/bin/gas-station-exporter/
|
||||
ExecStart=/usr/bin/python3 gas-station-exporter.py
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
TimeoutStopSec=20s
|
||||
SendSIGKILL=no
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user