17 lines
456 B
SYSTEMD
17 lines
456 B
SYSTEMD
|
[Unit]
|
||
|
Description=Prometheus Server
|
||
|
Documentation=https://prometheus.io/docs/introduction/overview/
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Restart=on-failure
|
||
|
RestartSec=5s
|
||
|
User=pi
|
||
|
Restart=on-failure
|
||
|
|
||
|
ExecStart=/home/pi/bme680-homekit/prometheus/prometheus-2.36.1.linux-armv6/prometheus \
|
||
|
--config.file=/home/pi/bme680-homekit/prometheus/prometheus.yml \
|
||
|
--storage.tsdb.path=/home/pi/bme680-homekit/prometheus/data
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|