Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
Re: [SLE] cron.daily
  • From: "Carlos E. R." <robin1.listas@xxxxxxxxxx>
  • Date: Sun, 6 Mar 2005 01:23:23 +0100 (CET)
  • Message-id: <Pine.LNX.4.58.0503060111350.8032@xxxxxxxxxxxxxxxx>

The Saturday 2005-03-05 at 16:39 -0500, Ken Schneider wrote:

> > The code above removes the files in /var/spool/cron/lastrun/
> > So the lines "rm" lines in /etc/crontab seems redundant to me, aren't they?

Not really. I gave a "fuzzy" explanation yesterday.

> It would seem so since /usr/lib/cron/run-crons does some checks on the
> age of the files (time stamp checks).
>
> > It may even be worse. Assume for the daily cron that the
> > script /usr/lib/cron/run-crons has been executed at 03:55, and it has set the
> > lock file. What happens now is that at 04:14 the lock file is being removed.
> > Meaning that at 04:15 the daily script run again, while that should not
> > happen.... Bug?

Not really... I haven't examined it in detail; but at worst it would mean
that, for one thing, that you had booted your computer at 3:40 in the
morning ;-)

59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
14 4 * * * root rm -f /var/spool/cron/lastrun/cron.daily
29 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
44 4 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly

then, the daily flag would be created sometime after 4:14, so the next day
execution would happen about that hour as well.

--
Cheers,
Carlos Robinson

< Previous Next >