From 614885f93db2d742d6af6efbe46d46f44d53273b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 22 Aug 2018 11:11:11 +0200 Subject: [PATCH] Set munin-async restart time to 10sec 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/munin/manifests/init.pp b/modules/munin/manifests/init.pp index b4a5398ba..f6bd74811 100644 --- a/modules/munin/manifests/init.pp +++ b/modules/munin/manifests/init.pp @@ -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', } -- 2.20.1