Bug 491135 - Fix /etc/init.d/httpd to use the pid file of the server to restart instead of blowing all httpds away
Fix /etc/init.d/httpd to use the pid file of the server to restart instead of...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: httpd (Show other bugs)
5.3
All Linux
low Severity medium
: rc
: ---
Assigned To: Joe Orton
BaseOS QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-19 11:11 EDT by Graham Leggett
Modified: 2009-09-02 07:50 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-09-02 07:50:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Graham Leggett 2009-03-19 11:11:35 EDT
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 11:34:29 EDT
Thanks for the report.
Comment 6 errata-xmlrpc 2009-09-02 07:50:43 EDT
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.