]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add two new options to cron(8), -J and -j. They allow to specify
authorYaroslav Tykhiy <ytykhiy@gmail.com>
Sun, 16 May 2004 19:29:33 +0000 (19:29 +0000)
committerYaroslav Tykhiy <ytykhiy@gmail.com>
Sun, 16 May 2004 19:29:33 +0000 (19:29 +0000)
commitf5896baf9c429cf0c2990456bb7f8fb155d8a223
treef6891e3a1cac720616add18137adb29bd3f30ecc
parent07c8b2af058402be4f301878402d614c8421acd1
Add two new options to cron(8), -J and -j.  They allow to specify
the maximum amount of time jitter for root and other users, respectively.
Before starting a job, cron(8) will sleep a random number of seconds,
from 0 to the amount specified.  This can help to smooth down load spikes
when a lot of jobs are to start at the beginning of a particular minute
(e.g., the first minute of an hour.)

PR: bin/66474
Submitted by: Dmitry Morozovsky <marck <@> rinet.ru>
usr.sbin/cron/cron/cron.8
usr.sbin/cron/cron/cron.c
usr.sbin/cron/cron/cron.h
usr.sbin/cron/cron/do_command.c