Bug 505309

Summary: cron is off its chum again
Product: [Fedora] Fedora Reporter: Tom Horsley <horsley1953>
Component: anacronAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: mmaslano, pertusus, tmraz
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-18 12:06:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
cron log none

Description Tom Horsley 2009-06-11 12:58:12 UTC
Description of problem:

I'm sitting here configuring my newly genned fedora 11 desktop and I see
makewhatis running. That's typical on a relatively new system. It finishes,
and then a little later, I see makewhatis running yet again. Looking
in the cron logs, I see this for the weekly jobs:

Jun 10 10:01:01 tomh anacron[2445]: Will run job `cron.weekly' in 42 min.
Jun 10 10:43:01 tomh anacron[2445]: Job `cron.weekly' started
Jun 10 10:43:01 tomh run-parts(/etc/cron.weekly)[25753]: starting makewhatis.cron
Jun 11 08:01:05 tomh anacron[6398]: Will run job `cron.weekly' in 42 min.
Jun 11 08:43:05 tomh anacron[6398]: Job `cron.weekly' started
Jun 11 08:43:05 tomh run-parts(/etc/cron.weekly)[15344]: starting makewhatis.cron

I don't know much, but I'm absolutely sure that Jun 11th hasn't been a week
since Jun 10th.

I also see this for makewhatis:

Jun 11 08:23:10 tomh run-parts(/etc/cron.daily)[6687]: starting makewhatis.cron
Jun 11 08:30:02 tomh run-parts(/etc/cron.daily)[12887]: finished makewhatis.cron
Jun 11 08:43:05 tomh run-parts(/etc/cron.weekly)[15344]: starting makewhatis.cron


Version-Release number of selected component (if applicable):
cronie-1.2-7.fc11.x86_64
anacron-2.3-74.fc11.x86_64


How reproducible:
No idea.

Steps to Reproduce:
1.Let system run, observe strange behavior
2.
3.
  
Actual results:


Expected results:


Additional info:

I always find the anacron behaviour uttely counterproductive. If I just
do a yum erase anacron, with cron work properly without it?

Comment 1 Tom Horsley 2009-06-11 13:00:02 UTC
Created attachment 347395 [details]
cron log

I might as well attach the whole cron log, it hasn't gotten very big yet.

Comment 2 Marcela Mašláňová 2009-06-11 13:25:23 UTC
Hello,
makewhatis is at first run by cron.daily and then by cron.weekly. This is strange behaviour of makewhatis, which will be changed in new version. You can't blame cron for this issue.
Best regards,
Marcela

Comment 3 Tom Horsley 2009-06-11 13:37:10 UTC
What about the two cron.weekly runs in two days?

Comment 4 Marcela Mašláňová 2009-06-11 13:52:16 UTC
Ok, that's a problem. It works for me. Does it make a time stamp in /var/spool/anacron/cron.weekly ? Does cron.weekly run every day on your machine?

Comment 5 Tom Horsley 2009-06-11 14:31:57 UTC
I won't know if it runs every day till tomorrow :-).

Perhaps I rebooted it yesterday before weekly got finished and it
therefore decided it needed to start from scratch again?

Things like this are why I always disable the anacron service, but
now I see it isn't a separate service, which is why I wondered if
I could erase the anacron package in order to disable the "helpful"
anacron behavior?

Here's the timestamp I have today:

[root@tomh ~]# ls -l /var/spool/anacron/cron.weekly
-rw------- 1 root root 9 Jun 11 08:49 /var/spool/anacron/cron.weekly
[root@tomh ~]# cat /var/spool/anacron/cron.weekly
20090611

Comment 6 Marcela Mašláňová 2009-06-18 12:06:25 UTC
(In reply to comment #5)
> I won't know if it runs every day till tomorrow :-).
> 
> Perhaps I rebooted it yesterday before weekly got finished and it
> therefore decided it needed to start from scratch again?
Yes, that could be only reason. If the job didn't finish and created time stamp, then it'll start again.