Results 1 to 10 of 11
At 4:00 PM each day my hard drive becomes very active. I assume it is doing some optimization. The question is where is this time set??
I'd like to change ...
- 12-20-2006 #1
4:00 PM question
At 4:00 PM each day my hard drive becomes very active. I assume it is doing some optimization. The question is where is this time set??
I'd like to change it to a more convenient time
I've looked at cron as root (GUI) and I can't see it scheduled there. There is just a small performance hit during the process which last for 2-5 minutes, but it is annoying
- 12-20-2006 #2Just Joined!
- Join Date
- Dec 2006
- Location
- UK
- Posts
- 1
Could it be your Anti Virus running a scheduled scan?
- 12-20-2006 #3
Originally Posted by Dodge_G1
Do I have a anti-Virus?? I never installed one. Is there one installed by default?
- 12-20-2006 #4
Originally Posted by Dodge_G1
Do I have a anti-Virus?? I never installed one. Is there one installed by default?
- 12-20-2006 #5
I think most likely a cron
No such thing (by default).
Originally Posted by gogalthorp
I know you stated you looked, but are you certain its not a cron job?
- 12-20-2006 #6
Originally Posted by oldcpu
Does not seem to be. Went to the root GUI and looked in the list There was only one entry and that for root. If memory serves (not root now) it was execute some cron command every 5 minutes. That was it no other for any other user. It is possible that this job is triggering what ever is happening. But the actuall schedule must be set somewhere else. The first time I installed Suse it happened at 11:00PM ( a much better time). After I reinstalled it changed to 4:00PM
This is an annoyance rather then a problem but I'd sure like to know what is happening. And I would love to change the time.
- 12-20-2006 #7Did you look under /etc/cron.daily, to see if there is anything there that is enabled?
Originally Posted by gogalthorp
You could also examine /etc/crontab.
And you are certain this only occurs at 4pm, and not at other times as well?
- 12-20-2006 #8There are a fair number of scripts.
Originally Posted by oldcpu
crontab file: This is more or less what I saw in the Kcrone window as root It is set to run daily every 15 minutesCode:beagle-crawl-system suse.de-check-battery suse.de-update-preload logrotate suse.de-clean-core suse-do_mandb suse-clean_catman suse.de-clean-tmp suse-tetex suse.de-backup-rc.config suse.de-cron-local suse.de-backup-rpmdb suse.de-updatedb
Code:SHELL=/bin/sh PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin MAILTO=root # # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly # -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-cron$
Ok it is most likely the beagle-crawl-system is the major offender here. But that still begs the question of why at 4:00 PM does the daily cron tasks run and how to change this time???????
I could remove beagle I have really never used it. Still.....
here are all the cron.xxx dir
Code:cron.daily: beagle-crawl-system suse.de-check-battery suse.de-update-preload logrotate suse.de-clean-core suse-do_mandb suse-clean_catman suse.de-clean-tmp suse-tetex suse.de-backup-rc.config suse.de-cron-local suse.de-backup-rpmdb suse.de-updatedb cron.hourly: mcelog cron.monthly: cron.weekly: wwwoffle
- 12-20-2006 #9I'm definitely a beginner/newbie when it comes to cron jobs, ... but it looks to me that you could look at the code in /usr/lib/cron/run-crons and maybe also in /usr/lib/cron/run-cron$ to see if you can get any hints.
Originally Posted by gogalthorp
- 12-21-2006 #10
Originally Posted by oldcpu
There is no /usr/lib/cron/run-cron$
But here is the part of /usr/lib/cron/run-crons script that I beleve is the control for daily
Code:cron.daily) # if DAILY_TIME set, run only at a fixed time of day if [ "$DAILY_TIME" != "" ] ; then DAILY_TIME_NEW="`echo $DAILY_TIME | sed s,:,, | sed s,^0,, `" if [ "$DAILY_TIME_NEW" -gt "2359" ] ; then echo "wrong time format in /etc/sysconfig/cron DAILY_TIME, value is $DAILY_TIME" | logger fi NOW_H=`date +%H%M` if [ $(($DAILY_TIME_NEW - 15)) -lt "$NOW_H" ] && [ $(($DAILY_TIME_NEW + 15)) -gt "$NOW_H" ]; then TIME="" else # take care of MAX_NOT_RUN, default is 7 days if [ "$MAX_NOT_RUN" != "0" ] ; then TIME="-cmin +$((1440*$MAX_NOT_RUN)) -or -cmin $((1440*$MAX_NOT_RUN))" else TIME="-cmin +$MAX_NOT_RUN_FORCE -or -cmin $MAX_NOT_RUN_FORCE" fi fi # run as usual else TIME="-cmin +1440 -or -cmin 1440" fi ;;
Looks like DAILY_TIME is an "enviromental" variable that holds the time to do the daily cron job
Ok now I get fuzzy... how do you set a variable and more important how to set it in a script that will run at boot/session start???
typeing echo $DAILY_TIME returns nothing
SET DAILY_TIME = 21:00 or "21:00" does not seem to "set" anything
also don't really understand this line
TIME="-cmin +1440 -or -cmin 1440"
don't know where cmin comes from???


Reply With Quote