]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Clean up old munin-async files
authorPeter Palfrader <peter@palfrader.org>
Tue, 26 May 2015 17:07:04 +0000 (19:07 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 26 May 2015 17:07:04 +0000 (19:07 +0200)
modules/debian-org/templates/dsa-puppet-stuff.cron.erb

index 6bd13a131ddce1890a795dee586b658da958ca34..088597342aef60058ac6ffdeba0cec781559bd63 100644 (file)
@@ -16,3 +16,5 @@ SHELL=/bin/bash
 <% end -%>
 
 @hourly root sleep $(( $RANDOM \% 300 )); if [ -x /usr/lib/nagios/plugins/dsa-check-stunnel-sanity ] && [ -e /etc/stunnel/puppet-ekeyd.conf ] && ! /usr/lib/nagios/plugins/dsa-check-stunnel-sanity > /dev/null && grep -q '^client = yes' /etc/stunnel/puppet-ekeyd.conf; then /usr/sbin/service stunnel4 restart > /dev/null; fi
+
+@daily munin-async [ -d /var/lib/munin-async ] && find /var/lib/munin-async -type f -name '*.gz' -mtime +90 -delete