also delete empty files in /var/lib/munin-async
authorPeter Palfrader <peter@palfrader.org>
Wed, 3 Jun 2015 06:46:51 +0000 (08:46 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 3 Jun 2015 06:46:51 +0000 (08:46 +0200)
modules/debian-org/templates/dsa-puppet-stuff.cron.erb

index 0885973..30fcc7d 100644 (file)
@@ -17,4 +17,5 @@ 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 -name '*.gz' -mtime +90 -delete
+@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