Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
Re: [SLE] cron.daily
  • From: Richard Bos <radoeka@xxxxxxxxx>
  • Date: Mon, 7 Mar 2005 12:30:53 +0100
  • Message-id: <200503071230.53460.radoeka@xxxxxxxxx>
Op zaterdag 5 maart 2005 21:32, schreef Richard Bos:
> 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 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?

If have just been informed that the "rm" lines have been removed
from /etc/crontab for the next suse version ;)

--
Richard Bos
Without a home the journey is endless


< Previous Next >