[BACK]Return to crontab CVS log [TXT][DIR] Up to [local] / src / etc

File: [local] / src / etc / crontab (download)

Revision 1.19, Sat Oct 19 15:26:06 2013 UTC (10 years, 7 months ago) by halex
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.18: +2 -2 lines

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: crontab,v 1.19 2013/10/19 15:26:06 halex Exp $
#
# /var/cron/tabs/root - root's crontab
#
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute	hour	mday	month	wday	command
#
# sendmail clientmqueue runner
*/30	*	*	*	*	/usr/sbin/sendmail -L sm-msp-queue -Ac -q
#
# rotate log files every hour, if necessary
0	*	*	*	*	/usr/bin/newsyslog
# send log file notifications, if necessary
#1-59	*	*	*	*	/usr/bin/newsyslog -m
#
# do daily/weekly/monthly maintenance
30	1	*	*	*	/bin/sh /etc/daily
30	3	*	*	6	/bin/sh /etc/weekly
30	5	1	*	*	/bin/sh /etc/monthly
#0	*	*	*	*	sleep $((RANDOM \% 1800)) && /usr/libexec/spamd-setup