Red Hat Bugzilla – Bug 110240
cron runs two instances of mrtg when minutes are 0-59/5
Last modified: 2007-11-30 17:10:33 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Description of problem:
After updating to fedora core I got emails that told i'm running
parallel instances of mrtg. I look and look where the problem could
be. Didn't find. Only line of mrtg which i had was in /etc/crontab
0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Then I replaced that mrtg bin with shellscript that did
logger mrtg: $@
Got only 1 email, but noticed two mrtg's running in ps output and
two identical lines in /var/log/messages .. hitting head to the wall
and thinking.. then i tried with
*/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg
and got only one email and line in messages. So wtf?
Altered that back to 0-59/5 and got 1 email, 2 lines in messages.
So there has to be some weird bug in new vixie-cron which cannot
handle that 0-59/5 right, which should be correct syntax.
Umm, it seems that it does it with */5 sometimes.. weird..
Version-Release number of selected component (if applicable):
That cron.d thingie, where did that came from :)