From owner-cvs-all Tue Dec 12 0:51: 2 2000 From owner-cvs-all@FreeBSD.ORG Tue Dec 12 00:50:58 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from gray.westgate.gr (gray.westgate.gr [212.205.119.66]) by hub.freebsd.org (Postfix) with ESMTP id 5CB0237B400; Tue, 12 Dec 2000 00:50:56 -0800 (PST) Received: (from charon@localhost) by gray.westgate.gr (8.11.1/8.11.1) id eBC8oxK00796; Tue, 12 Dec 2000 10:50:59 +0200 (EET) Date: Tue, 12 Dec 2000 10:50:59 +0200 From: Giorgos Keramidas To: Mark Huizer Cc: Alfred Perlstein , Dag-Erling Smorgrav , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc crontab Message-ID: <20001212105059.A766@gray.westgate.gr> References: <200012101254.eBACsZu99303@freefall.freebsd.org> <20001210052846.E16205@fw.wintelcom.net> <20001210171009.B1675@hades.hell.gr> <20001211182239.B20131@eeyore.local.dohd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001211182239.B20131@eeyore.local.dohd.org>; from freebsd@dohd.org on Mon, Dec 11, 2000 at 06:22:40PM +0100 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 06:22:40PM +0100, Mark Huizer wrote: ... > > This will make sure that the succession of scripts will start at 03:01 > > and run (in this order), daily -> weekly -> monthly. The rules that I > > followed are: ... > > Isn't it kind of easier to let periodic use a lock in /var/lock or > something and synchronize that way? After all the discussion with lock files, I am not sure there is a `correct' way to make sure than a crontab entry can lock out others or have them put in a queue. I seem to prefer letting cron do the checking and scheduling of jobs. I am re-reading through the thread of the lockfiles though, to see if I can come up with something that will use lockfiles only for running `periodic daily'. If daily takes more than a full day on a machine to run, it will probably fire up a second time before the first one finishes, if crontab doesn't use lockfiles. On the other hand, on a machine where daily takes more than a day to run, well.. there will eventually appear other problems too. - giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message