Bug 491135

Summary: Fix /etc/init.d/httpd to use the pid file of the server to restart instead of blowing all httpds away
Product: Red Hat Enterprise Linux 5 Reporter: Graham Leggett <minfrin>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: fuzz, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 11:50:43 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 Graham Leggett 2009-03-19 15:11:35 UTC
In the current RHEL5 release of httpd, the init script /etc/init.d/httpd blows away all httpds on the box on restart:

stop() {
        echo -n $"Stopping $prog: "
        killproc -d 10 $httpd
        ^^^^^^^^^^^^^^^^^^^^^
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}

This needs to be changed so that only the httpd referred to by the pid file is blown away.

The FC8 version of httpd is fixed:

stop() {
        echo -n $"Stopping $prog: "
        killproc -p ${pidfile} -d 10 $httpd
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}

This fix needs to be backported to the RHEL5 version of httpd.

Comment 1 Joe Orton 2009-03-19 15:34:29 UTC
Thanks for the report.

Comment 6 errata-xmlrpc 2009-09-02 11:50:43 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-2009-1380.html