Bug 271501
Summary: | cron.daily does not run | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steven Stern <subscribed-lists> |
Component: | crontabs | Assignee: | Marcela Mašláňová <mmaslano> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | medium | ||
Version: | 7 | CC: | deknuydt, goodyca48, nigel, thomas |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-09-10 07:14:55 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: |
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 to [ "$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. Aaaaagh!!! 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 |
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 1a2,5 > # 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: