Bug 438340

Summary: lock files are badly handled by all init scripts
Product: Red Hat Enterprise Linux 4 Reporter: Milos Malik <mmalik>
Component: iprutilsAssignee: Roman Rakus <rrakus>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0697 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-24 19:49:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milos Malik 2008-03-20 13:49:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.8.1.12) Gecko/20080208 Fedora/2.0.0.12-1.fc8 Firefox/2.0.0.12

Description of problem:
There are more mistakes in those init scripts:

1. Lock files are created in function start() but they are not removed in function stop().
2. The existence of a lock file is never tested, so daemons could be run multiple times.
3. /etc/init.d/<script> condrestart does nothing, because "[ -d $lockfile ]" tests the existence of a directory. But lock file is not a directory.

Version-Release number of selected component (if applicable):
iprutils-2.2.8-1

How reproducible:
Always


Steps to Reproduce:
1. look into /etc/init.d/iprdump
2. look into /etc/init.d/iprinit
3. look into /etc/init.d/iprupdate


Actual Results:


Expected Results:


Additional info:

Comment 1 RHEL Program Management 2008-03-25 10:48:00 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 2 David Cantrell 2008-03-25 20:56:51 UTC
These are also relatively easy to clean up.  Giving it a devel-ack.

Comment 4 Roman Rakus 2008-03-28 11:27:16 UTC
Init scripts have been fixed in the iprutils-2.2.8-2.el4 build, which has been
tagged and built.  Moving bug to MODIFIED.

Comment 8 errata-xmlrpc 2008-07-24 19:49:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0697.html