Bug 271501 - cron.daily does not run
cron.daily does not run
Status: CLOSED DUPLICATE of bug 269961
Product: Fedora
Classification: Fedora
Component: crontabs (Show other bugs)
All All
medium Severity urgent
: ---
: ---
Assigned To: Marcela Mašláňová
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-08-31 10:44 EDT by Steven Stern
Modified: 2007-11-30 17:12 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-10 03:14:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Steven Stern 2007-08-31 10:44:03 EDT
Description of problem:

crontab update breaks run-parts so cron.daily does not run

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

crontabs.noarch 1.10-15.fc7 

How reproducible:

check logs

Steps to Reproduce:
1. update to crontabs.noarch 1.10-15.fc7 
2. wait until next morning
3. nothing happened

It appears some lines got added to /usr/bin/run-parts that caused the problem.

diff run-parts /usr/bin/run-parts
> # if cron.daily was run today
> AUX1=`cat /var/spool/anacron/cron.daily`
> AUX2=`date +%Y%m%d`
> [ "$AUX1" == $AUX2 ] || exit 0 
Actual results:

Expected results:

Additional info:
Comment 1 Nigel Metheringham 2007-09-01 03:53:06 EDT
That code appears to be intended to ensure cron.daily only runs once per day.
Instead it will only allow it to run on the same day as the last run!

Need to change
  [ "$AUX1" == $AUX2 ] || exit 0
  [ "$AUX1" == $AUX2 ] && exit 0

For those people that run yum from cron.daily (like me), this will need
manual intervention to fix on each system and will prevent further automatic
updates INCLUDING SECURITY UPDATES until a release upgrade.
Comment 2 Nigel Metheringham 2007-09-01 03:56:04 EDT

Didn't realise that this is in run-parts, not something specific to cron.daily

The additional code snippet must be removed entirely because its completely
castrated cron.hourly.  It may well break cron.weekly & cron.monthly because
all of them will look at the same cron.daily flag!
Comment 3 Nigel Metheringham 2007-09-01 04:01:41 EDT
This is a duplicate of Bug #269961
Comment 4 Marcela Mašláňová 2007-09-10 03:14:55 EDT
Fixed in crontabs-1.10-16.fc7

*** This bug has been marked as a duplicate of 269961 ***

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