Bug 111387 - RFE: do not run anacron before 4 a.m.
Summary: RFE: do not run anacron before 4 a.m.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anacron
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jason Vas Dias
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-02 21:52 UTC by Bernd Bartmann
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-04 22:34:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bernd Bartmann 2003-12-02 21:52:59 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031114

Description of problem:
After rebooting a system at 3:45 a.m. in the morning I noticed that
anacron runs altough normal cron will start cron.daily at 4 a.m.

So I suggest to not run anacron if the system has been booted before 4
a.m. and normal cron is enabled. Otherwise you'll all reports from
e.g. logwatch and tripwire twice.
 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. enable cron and anacron
2. reboot the system before 4 a.m.
3. wait for emails from cron
    

Additional info:

Comment 1 Jason Vas Dias 2004-08-04 22:34:59 UTC
You can edit your configuration files if this bothers you -
that's what they're for.



Comment 2 Bernd Bartmann 2004-08-05 06:47:37 UTC
Sure, but how about shipping default config files that already fix
this issue?

Comment 3 Jason Vas Dias 2004-08-05 13:31:52 UTC
How would we fix it ? 
Not run anacron at all ?
Remove the cron.daily job from the default crontab ?
Put complex logic into the anacron startup script that
would check when the cron.daily job is to be run and
possibly not start anacron ?
Make anacron parse the crontabs and assume cron will
run the jobs?
Make cron discover if anacron has run the jobs
(integrate anacron into cron) ?
None of these are acceptable general purpose solutions.
Really, customizing your startup scripts to suit the needs
of your installation is the only answer.
Perhaps disabling cron (chkconfig --del crond)
and just using anacron might be an answer for you.



Note You need to log in before you can comment on or make changes to this bug.