From: Peter Palfrader Date: Tue, 26 May 2015 17:07:04 +0000 (+0200) Subject: Clean up old munin-async files X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=3ab1ae31260e7f888c9d0eb934ab08a9333aa019;p=mirror%2Fdsa-puppet.git Clean up old munin-async files --- diff --git a/modules/debian-org/templates/dsa-puppet-stuff.cron.erb b/modules/debian-org/templates/dsa-puppet-stuff.cron.erb index 6bd13a131..088597342 100644 --- a/modules/debian-org/templates/dsa-puppet-stuff.cron.erb +++ b/modules/debian-org/templates/dsa-puppet-stuff.cron.erb @@ -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