From 1889360b169c245a729198c59299bb50a4cd64c3 Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 15 Apr 2020 03:24:08 +0000 Subject: [PATCH] Use the new random interval support in cron instead of a random sleep. The random intervals used can be adjusted as needed. OK deraadt@ --- src/etc/crontab | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/crontab b/src/etc/crontab index 481eac77..ccc5c688 100644 --- a/src/etc/crontab +++ b/src/etc/crontab @@ -1,4 +1,4 @@ -# $OpenBSD: crontab,v 1.25 2019/12/04 15:07:51 job Exp $ +# $OpenBSD: crontab,v 1.26 2020/04/15 03:24:08 millert Exp $ # # /var/cron/tabs/root - root's crontab # @@ -17,6 +17,6 @@ HOME=/var/log 30 1 * * * /bin/sh /etc/daily 30 3 * * 6 /bin/sh /etc/weekly 30 5 1 * * /bin/sh /etc/monthly -#0 * * * * sleep $((RANDOM \% 2048)) && /usr/libexec/spamd-setup +#~ * * * * /usr/libexec/spamd-setup -#0 9 * * * -n sleep $((RANDOM \% 4096)) && rpki-client -v && bgpctl reload +#0~20 9 * * * -n rpki-client -v && bgpctl reload