Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 160170 - Missing ! in /etc/cron.weekly/yum.cron
Summary: Missing ! in /etc/cron.weekly/yum.cron
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
Depends On:
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:
Last Closed: 2005-06-12 20:09:55 UTC

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):

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