loki: Enable auto-restart

Sometimes Loki fails to start or otherwise isn't running.  To minimize
loss of log data, we need it to restart automatically when possible.
master
Dustin 2024-03-28 10:11:38 -05:00
parent ba5ba257c1
commit c4dcb5a8de
1 changed files with 4 additions and 0 deletions

View File

@ -3,11 +3,15 @@
Description=Grafana Loki
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=1m
StartLimitBurst=60
[Service]
StateDirectory=%P
ExecReload=/usr/bin/podman kill --cidfile=%t/%N.cid --signal HUP
TimeoutStartSec=5m
Restart=always
RstartSec=1s
[Container]
Image=docker.io/grafana/loki:2.9.4