Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1008109

Summary: cronie runs /etc/cron.daily/* scripts every hour
Product: Red Hat Enterprise Linux 7 Reporter: Matěj Cepl <mcepl>
Component: cronieAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED WORKSFORME QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-04 09:02:27 UTC Type: Bug
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
/var/log/cron
none
/etc/crontab
none
/etc/anacrontab none

Description Matěj Cepl 2013-09-14 20:12:44 UTC
Created attachment 797712 [details]
/var/log/cron

Description of problem:
I don't understand what's the problem, but looking at the attached /var/log/cron it seems cron.daily tasks are run every hour. I have first noticed it with logwatch, but after looking through the log it seems ALL tasks where run that often.

Version-Release number of selected component (if applicable):
cronie-1.4.11-3.el7.x86_64

How reproducible:
happens here

Steps to Reproduce:
1.put a script to /etc/cron.daily (or install a package which does so)
2.
3.

Actual results:
script is run every hour

Expected results:
it should be run only once a day

Additional info:

Comment 2 Marcela Mašláňová 2013-09-16 09:40:33 UTC
Could you show me also your /etc/crontab and /etc/anacrontab? I guess I would have to see this bug report more often if it is happening to all users.

Comment 3 Matěj Cepl 2013-09-16 10:51:34 UTC
Created attachment 798220 [details]
/etc/crontab

That's empty

Comment 4 Matěj Cepl 2013-09-16 10:52:47 UTC
Created attachment 798221 [details]
/etc/anacrontab

See also

matej@wycliff: ~$ rpm -Vf /etc/anacrontab
matej@wycliff: ~$ rpm -Vf /etc/crontab
matej@wycliff: ~$

Comment 5 Matěj Cepl 2013-09-26 11:52:08 UTC
matej@wycliff: bundle (master +)$ ls -l /etc/cron.hourly/
total 16
-rwxr-xr-x. 1 root root 392 Sep 13 14:14 0anacron
-rwxr-xr-x. 1 root root 362 Sep  9 06:51 0yum-hourly.cron
-rwxr-xr-x. 1 root root  69 Feb  3  2013 fetchnews
-rw-r--r--. 1 root root  99 Sep  6 12:19 leafnode
matej@wycliff: bundle (master +)$

Comment 6 Matěj Cepl 2013-09-26 11:54:06 UTC
matej@wycliff: bundle (master +)$ ls -l /var/spool/anacron/
total 12
-rw-------. 1 root root 9 Sep 26 03:37 cron.daily
-rw-------. 1 root root 9 Sep 20 03:04 cron.monthly
-rw-------. 1 root root 9 Sep 20 03:56 cron.weekly
matej@wycliff: bundle (master +)$

Comment 7 Matěj Cepl 2013-10-04 09:02:27 UTC
Hmm, this somehow got fixed. I don't see it anymore with
cronie-anacron-1.4.11-4.el7.x86_64
cronie-1.4.11-4.el7.x86_64

(or something got fixed in systemd-207-2.el7.x86_64?)