For some reason I cannot fathom, cron.hourly runs twice each hour on one of my two CentOS-5.4 systems, as reported in /var/log/cron: ------------------------- Mar 16 14:01:01 helen crond[27833]: (root) CMD (run-parts /etc/cron.hourly) Mar 16 14:01:01 helen crond[27834]: (root) CMD (run-parts /etc/cron.hourly) ------------------------- On the other it just runs once, as expected. ------------------------- Mar 16 13:01:01 althea crond[23373]: (root) CMD (run-parts /etc/cron.hourly) Mar 16 14:01:01 althea crond[23553]: (root) CMD (run-parts /etc/cron.hourly) Mar 16 15:01:01 althea crond[23695]: (root) CMD (run-parts /etc/cron.hourly) ------------------------- This doesn't have any bad effect, but it does run the scripts in /etc/cron.hourly twice. I just wonder if anyone has come across this curiosity? Or can suggest any possible cause. -- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
On Tue, Mar 16, 2010 at 9:15 AM, Timothy Murphy <gayleard at eircom.net> wrote:> For some reason I cannot fathom, > cron.hourly runs twice each hour > on one of my two CentOS-5.4 systems, > as reported in /var/log/cron: > ------------------------- > Mar 16 14:01:01 helen crond[27833]: (root) CMD (run-parts /etc/cron.hourly) > Mar 16 14:01:01 helen crond[27834]: (root) CMD (run-parts /etc/cron.hourly) > ------------------------- > On the other it just runs once, as expected. > ------------------------- > Mar 16 13:01:01 althea crond[23373]: (root) CMD (run-parts /etc/cron.hourly) > Mar 16 14:01:01 althea crond[23553]: (root) CMD (run-parts /etc/cron.hourly) > Mar 16 15:01:01 althea crond[23695]: (root) CMD (run-parts /etc/cron.hourly) > ------------------------- > > This doesn't have any bad effect, > but it does run the scripts in /etc/cron.hourly twice. > > I just wonder if anyone has come across this curiosity? > Or can suggest any possible cause.hourly, daily, weekly and monthly jobs are configured in /etc/crontab. What's your /etc/crontab look like? Are you seeing the same behavior for daily/weekly jobs? Have you simply tried restarting the cron service? Jeff
Timothy, On Tuesday, March 16, 2010 you wrote:> Mar 16 14:01:01 helen crond[27833]: (root) CMD (run-parts /etc/cron.hourly) > Mar 16 14:01:01 helen crond[27834]: (root) CMD (run-parts /etc/cron.hourly)> I just wonder if anyone has come across this curiosity? > Or can suggest any possible cause.Did you edit one of the jobs? Some Editors (joe) create a file with an "~" at the end as a backup. If you edit one of your cronjob-scripts in /etc/cron.hourly/ , you may create a second file that will be run by cron too. This happened here some time ago and it took some time to figure out the reason. best regards --- Michael Schumacher PAMAS Partikelmess- und Analysesysteme GmbH Dieselstr.10, D-71277 Rutesheim Tel +49-7152-99630 Fax +49-7152-996333 Gesch?ftsf?hrer: Gerhard Schreck Handelsregister B Stuttgart HRB 252024