Bug 491135 - Fix /etc/init.d/httpd to use the pid file of the server to restart instead of blowing all httpds away
Summary: Fix /etc/init.d/httpd to use the pid file of the server to restart instead of...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: httpd
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-19 15:11 UTC by Graham Leggett
Modified: 2009-09-02 11:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:50:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1380 0 normal SHIPPED_LIVE httpd bug fix update 2009-09-01 11:48:49 UTC

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


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