Red Hat Bugzilla – Bug 160170
Missing ! in /etc/cron.weekly/yum.cron
Last modified: 2014-01-21 17:52:03 EST
Description of problem:
In /etc/cron.weekly/yum.cron, I believe there is a missing !
Currently, it says "if yum is running, try to run yum clean", which is not going
to work. It should say "if yum is NOT running, try to run yum clean".
if [ -f /var/lock/subsys/yum ]; then
if [ ! -f /var/lock/subsys/yum ]; then
Version-Release number of selected component (if applicable):
It says - if you have the yum service enabled, then run yum clean.
it doesn't say 'if yum is running'.
yum has its own lock/pid file it is not governed by /var/lock/subsys/yum
that just tells the cron job whether or not it sould run.