Browse Source

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
OPENBSD_5_5
halex 10 years ago
parent
commit
a84bc3f51a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/crontab

+ 2
- 2
src/etc/crontab View File

@ -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

Loading…
Cancel
Save