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:
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?)