Description of problem:
crontab update breaks run-parts so cron.daily does not run
Version-Release number of selected component (if applicable):
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
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.
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!
This is a duplicate of Bug #269961
Fixed in crontabs-1.10-16.fc7
*** This bug has been marked as a duplicate of 269961 ***