Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
Re: [SLE] cron.daily
  • From: Ken Schneider <suse-list@xxxxxxxxxxxxx>
  • Date: Sat, 05 Mar 2005 16:39:06 -0500
  • Message-id: <1110058746.29583.35.camel@xxxxxxxxxxxxxxxxx>
On Sat, 2005-03-05 at 15:32, Richard Bos wrote:
> Op zaterdag 5 maart 2005 18:31, schreef Carlos E. R.:
> > # remove all lock files for scripts that are due to run
> > eval find $SPOOL/$BASE $TIME | \
> > xargs --no-run-if-empty rm
>
> 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?

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?
>
> --
> Richard Bos
> Without a home the journey is endless
--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998

* Only reply to the list please*

"The day Microsoft makes something that doesn't suck is probably
the day they start making vacuum cleaners." -Ernst Jan Plugge


< Previous Next >
Follow Ups