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
parent
ba5ba257c1
commit
c4dcb5a8de
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue