collectd: Restart service automatically
The *collectd.service* unit may fail for various reasons. Notably, if the container image is not present, it may fail to start if it is activated before the network is fully available. Using systemd's automatic restart mechanism will help ensure *collectd* is running whenever possible.
parent
40bde4df26
commit
dd3be7a24a
|
@ -17,5 +17,10 @@ PodmanArgs=--uts=host
|
||||||
PodmanArgs=--pid=host
|
PodmanArgs=--pid=host
|
||||||
PodmanArgs=--cgroupns=host
|
PodmanArgs=--cgroupns=host
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
StartLimitIntervalSec=10s
|
||||||
|
StartLimitBurst=10
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue