diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2013-10-19 15:26:07 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2013-10-19 15:26:07 +0000 |
commit | 0b8a661b171a7ce49de9388828e4887770787b2f (patch) | |
tree | 66e1b3433856e16e0d7e9287afd5b8e764c5281e | |
parent | 0128af1d4752495ec3348c67196595b2f4ba7d15 (diff) |
add a random sleep of up to half an hour to distribute the server
load from spamd-setup. Brought up by phessler@ who also pointed out
that the percent sign must be escaped in the command.
ok ajacoutot@ joerg@ phessler@ and sort of @blambert
-rw-r--r-- | etc/crontab | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/crontab b/etc/crontab index ca007a53add..42dca9b2e21 100644 --- a/etc/crontab +++ b/etc/crontab @@ -1,4 +1,4 @@ -# $OpenBSD: crontab,v 1.18 2009/05/09 17:15:49 schwarze Exp $ +# $OpenBSD: crontab,v 1.19 2013/10/19 15:26:06 halex Exp $ # # /var/cron/tabs/root - root's crontab # @@ -20,4 +20,4 @@ HOME=/var/log 30 1 * * * /bin/sh /etc/daily 30 3 * * 6 /bin/sh /etc/weekly 30 5 1 * * /bin/sh /etc/monthly -#0 * * * * /usr/libexec/spamd-setup +#0 * * * * sleep $((RANDOM \% 1800)) && /usr/libexec/spamd-setup |