Bug 160170 - Missing ! in /etc/cron.weekly/yum.cron
Missing ! in /etc/cron.weekly/yum.cron
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
  Show dependency treegraph
Reported: 2005-06-12 11:41 EDT by Robin Green
Modified: 2014-01-21 17:52 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-06-12 16:09:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robin Green 2005-06-12 11:41:10 EDT
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".

The line

if [ -f /var/lock/subsys/yum ]; then

should read

if [ ! -f /var/lock/subsys/yum ]; then

Version-Release number of selected component (if applicable):
Comment 1 Seth Vidal 2005-06-12 16:09:55 EDT
 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.

Note You need to log in before you can comment on or make changes to this bug.