Mailinglist Archive: opensuse (3349 mails)

< Previous Next >
Re: [SLE] 9.3 cron.daily run time
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Thu, 19 May 2005 06:36:24 -0700
  • Message-id: <200505190636.24312.rschulz@xxxxxxxxx>
Richard,

On Saturday 07 May 2005 08:17, Richard Bos wrote:
> Op zaterdag 7 mei 2005 17:12, schreef Scott Leighton:
> > ...
> >
> > I've stared and stared at it but can't see where it is bumping
> > it by this weird 15 minute increase each day. Anyone have
> > any clues?
>
> It's already fixed for then next suse release ;)
>
> Change:
> >           cron.daily)   TIME="-ctime +1  -or -ctime 1"  ;;
> >           cron.weekly)  TIME="-ctime +7  -or -ctime 7"  ;;
>
> to
>
>           cron.daily)   TIME="-cmin  +1440 -or -cmin  1440"  ;;
>           cron.weekly)  TIME="-cmin  +10080 -or -cmin  10080"  ;;

Are you sure? My system still has the 15-minute-per-day creep after I
applied this change.

This is what my "/usr/lib/cron/run-crons" looks like now, with a bit
more context:

test -e $SPOOL/$BASE && {
case $BASE in
cron.hourly) TIME="-cmin +60 -or -cmin 60" ;;
cron.daily) TIME="-cmin +1440 -or -ctime 1440" ;;
cron.weekly) TIME="-cmin +10080 -or -ctime 10080" ;;
cron.monthly) NOW=`date +%s`
LASTMONTH=`date -d "last month" +%s`
DIFF=`expr '(' $NOW - $LASTMONTH ')' / 86400`
TIME="-ctime +$DIFF"
;;
esac
# remove all lock files for scripts that are due to run
eval find $SPOOL/$BASE $TIME | \
xargs --no-run-if-empty rm
}



> ...
>
> Richard Bos


Randall Schulz

< Previous Next >
Follow Ups