gas-station-exporter/gas-station-exporter.service

19 lines
466 B
SYSTEMD

[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