From: Peter Palfrader Date: Wed, 22 Aug 2018 09:11:11 +0000 (+0200) Subject: Set munin-async restart time to 10sec X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;ds=inline;h=614885f93db2d742d6af6efbe46d46f44d53273b;p=mirror%2Fdsa-puppet.git 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. --- 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', }