From owner-cvs-all Wed Dec 20 14:52:34 2000 From owner-cvs-all@FreeBSD.ORG Wed Dec 20 14:52:30 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 354C937B402; Wed, 20 Dec 2000 14:52:29 -0800 (PST) Received: from hades.hell.gr (ppp7.patra.hellasnet.gr [212.54.197.22]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id UAA25345; Wed, 20 Dec 2000 20:52:31 -0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id eBKJGv711338; Wed, 20 Dec 2000 21:16:57 +0200 (EET) Date: Wed, 20 Dec 2000 21:16:57 +0200 From: Giorgos Keramidas To: "David E. O'Brien" Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc crontab Message-ID: <20001220211656.B11175@hades.hell.gr> References: <200012111838.eBBIcrY50441@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200012111838.eBBIcrY50441@freefall.freebsd.org>; from obrien@FreeBSD.ORG on Mon, Dec 11, 2000 at 10:38:52AM -0800 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Dec 11, 2000 at 10:38:52AM -0800, David E. O'Brien wrote: > obrien 2000/12/11 10:38:52 PST > > Modified files: > etc crontab > Log: > Revert back to rev 1.24 as we have not come to a consensus if is is OK > for a hung `daily' run to keep a `weekly' run from happening. ... As Mike Meyer showed to me in a very informative mail of his, the changes I had proposed to /etc/crontab were flawed. To quote his words: The reason I think so is that the crontab(5) man page says: Note: The day of a command's execution can be specified by two fields -- day of month, and day of week. If both fields are restricted (ie, aren't *), the command will be run when either field matches the current time. By reading the sources of /usr/src/usr.sbin/cron/cron/cron.c I found out that Mike is indeed doing the correct thing to quote the manpage, and that both the manpage and the sources state the same fact clearly. Since then, I haven't managed to find a replacement set of crontab entries to do the intended thing (i.e. run periodic weekly only after daily finishes, and monthly only after weekly finishes). This is what happens when inadequate testing is done, I guess. Thanks, Mike, for showing this to me :-) - giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message