Spread out unowned files check in time
authorPeter Palfrader <peter@palfrader.org>
Fri, 24 Feb 2012 17:10:56 +0000 (18:10 +0100)
committerPeter Palfrader <peter@palfrader.org>
Fri, 24 Feb 2012 17:10:56 +0000 (18:10 +0100)
dsa-nagios-checks/debian/cron.d

index 4e897b4..d05e0fd 100644 (file)
@@ -4,5 +4,6 @@
 @hourly  root [ -x /usr/sbin/dsa-update-apt-status ] && /usr/sbin/dsa-update-apt-status
 13 */4 * * * root [ -x /usr/sbin/dsa-update-samhain-status ] && /usr/sbin/dsa-update-samhain-status
 
-4 4 1 * *   root [ -x /usr/sbin/dsa-update-unowned-file-status ] && /usr/sbin/dsa-update-unowned-file-status
+SHELL=bash
+4 4 1 * *   root [ -x /usr/sbin/dsa-update-unowned-file-status ] && sleep $(( $RANDOM %% 86400 )) && /usr/sbin/dsa-update-unowned-file-status
 # vim:ft=crontab: