Red Hat Bugzilla – Bug 1255464
daily jobs run twice a day thanks to clash between cron.dail and anacron.
Last modified: 2015-11-09 07:37:41 EST
Created attachment 1065329 [details]
Description of problem:
Freshly installed "minimal" system.
Logwatch is running twice daily at approx 3am and 4am. Several other daily and weekly jobs are also running twice
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install minimal system with logwatch and MTA
2. monitor root mail over several days
2 logwatches are mailed to root each day.
1 Logwatch is mailed to root each day.
This has been repeatedly reported ion Bugzilla by various redhat/fedora users over the years and closed with blame placed on user malconfiguration.
This is a freshly installed system, we haven't configured it. There is no reason for this to be occurring other than vendor malconfiguration.
Can you please report the issue via the Red Hat Support account?
Also do you have both cronie-anacron and cronie-noanacron packages installed?
If so, just choose one and uninstall the other. I have no idea how you could get both installed but it normally does not happen unless you explicitly install both.
We (eventually) traced the problem.
In short: if /etc/crontab is used from an old system (in this case RHEL5) then the (now) redundant entries are used and the duplication is never flagged up during sanity checks.
It would be a good idea to check for and make more noise about locally edited /etc/crontab and suggest that entries be moved to /etc/cron.d/
Except normally local editing of /etc/crontab is perfectly OK. This is work for some system for proper inplace upgrade between major versions but I do not think we have one for upgrades from RHEL-5.