Delete more munin-async files sooner
authorPeter Palfrader <peter@palfrader.org>
Wed, 9 Mar 2016 09:25:52 +0000 (10:25 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 9 Mar 2016 09:25:52 +0000 (10:25 +0100)
modules/debian-org/templates/dsa-puppet-stuff.cron.erb

index a88d181..c2dda73 100644 (file)
@@ -13,5 +13,4 @@ SHELL=/bin/bash
 
 @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 -mtime +90 -name '*.gz' -delete
-@daily munin-async [ -d /var/lib/munin-async ] && find /var/lib/munin-async -type f -mtime +90 -size 0 -delete
+@daily munin-async [ -d /var/lib/munin-async ] && find /var/lib/munin-async -maxdepth 1 -type f -mtime +30 -delete