Mailinglist Archive: opensuse (3349 mails)

< Previous Next >
9.3 cron.daily run time
  • From: Scott Leighton <helphand@xxxxxxxxxxx>
  • Date: Sat, 7 May 2005 08:12:39 -0700
  • Message-id: <200505070812.39910.helphand@xxxxxxxxxxx>

Running 9.3. For some reason unknown to me, the cron.daily scripts are
running later and later in the day. They seem to be shifting approx
15 minutes later each day and this behavior appears to have
started after I updated to 9.3 from 9.2.

The time looks to be calculated somehow in /usr/lib/cron/run-crons,
the section of the script that does it is here

RUN=""
for CRONDIR in /etc/cron.{hourly,daily,weekly,monthly} ; do
test -d $CRONDIR || continue
BASE=${CRONDIR##*/}
TIME_EXT=${BASE##cron.}

test -e $SPOOL/$BASE && {
case $BASE in
cron.hourly) TIME="-cmin +60 -or -cmin 60" ;;
cron.daily) TIME="-ctime +1 -or -ctime 1" ;;
cron.weekly) TIME="-ctime +7 -or -ctime 7" ;;
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
}


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?

And, how do I get cron.daily back to running at a reasonable
time, like 4am or 5am in the morning?


Scott

--
POPFile, the OpenSource EMail Classifier
http://popfile.sourceforge.net/
Linux 2.6.11.4-20a-default x86_64

< Previous Next >
Follow Ups