[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PROPOSAL to serialize cron.{daily,weekly,monthly}



Hello,

On Tue, Sep 07, 2004 at 06:31:35PM +0300, Abdullah Ramazanoglu wrote:
> Here is the problem: Anacron works as a fall back mechanism where cron
> fails, due to various reasons, to do its job. In a normal 7/24 system
> anacron never kicks in cron.xxxly batches, as cron does its job
> successfully. Note that /etc/cron.d/anacron starts anacron at 7:30,
> whereas cron starts cron.{daily,weekly,monthly} at 6:25, 6:47 and 6:52
> respectively.
Are you sure? Let's look into /etc/crontab:
25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
then, for legibility, let's separate a command:
test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
and analyze them.
test -x /usr/sbin/anacron means "/usr/sbin/anacron is runnable for me"
so, the whole command:
/usr/sbin/anacron is runnable for me OR execute run-parts.

If you have installed anacron the first part is true and run-parts wont be
executed. The same for weekly/monthy at 6:47 and 6:52. Then at 7:30 anacron
shall be run.

Cheers
	Artur
-- 
http://blabluga.hell.pl/ksionszki/



Reply to: