From dd3be7a24a43fa533c15d7becb86ccdb8d6bda02 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 4 Oct 2023 10:03:41 -0500 Subject: [PATCH] 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. --- collectd.container | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/collectd.container b/collectd.container index e257c45..44333aa 100644 --- a/collectd.container +++ b/collectd.container @@ -17,5 +17,10 @@ PodmanArgs=--uts=host PodmanArgs=--pid=host PodmanArgs=--cgroupns=host +[Service] +Restart=always +StartLimitIntervalSec=10s +StartLimitBurst=10 + [Install] WantedBy=multi-user.target