Set munin-async restart time to 10sec
authorPeter Palfrader <peter@palfrader.org>
Wed, 22 Aug 2018 09:11:11 +0000 (11:11 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 22 Aug 2018 09:11:11 +0000 (11:11 +0200)
Sometimes munin-async fails to start, presumably because it cannot
connect to the running munind yet.  The service file tells it to
restart always, but with the default sleep time before a restart of
100ms we often run into
 systemd[1]: munin-async.service: Start request repeated too quickly.
after 5 fails attempts within a second or two.

Give munind more time to actually launch.

modules/munin/manifests/init.pp

index b4a5398..f6bd748 100644 (file)
@@ -85,6 +85,12 @@ class munin {
        package { 'munin-async':
                ensure => installed
        }
+       systemd::override { 'munin-async':
+               content  => @("EOF"),
+                       [Service]
+                       RestartSec=10
+                       | EOF
+       }
        file { '/etc/ssh/userkeys/munin-async':
                source => 'puppet:///modules/munin/munin-async-authkeys',
        }