Bug 160170 - Missing ! in /etc/cron.weekly/yum.cron
Summary: Missing ! in /etc/cron.weekly/yum.cron
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-06-12 15:41 UTC by Robin Green
Modified: 2014-01-21 22:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-06-12 20:09:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Robin Green 2005-06-12 15:41:10 UTC
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):
yum-2.3.2-7

Comment 1 Seth Vidal 2005-06-12 20:09:55 UTC
No,
 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.