Bug 783242

Summary: service httpd reload return 0 when it fails
Product: Red Hat Enterprise Linux 5 Reporter: Aleš Mareček <amarecek>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED ERRATA QA Contact: Aleš Mareček <amarecek>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9CC: bsingh, emaldona, mharmsen, prc, pyaduvan
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: httpd-2.2.3-67.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 05:04:06 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:
Bug Depends On:    
Bug Blocks: 713373    

Description Aleš Mareček 2012-01-19 18:28:39 UTC
Description of problem:
When command "service httpd reload" is run and fails the return value is 0.
i:ia64|m:ia64 root@hp-bl870c-02 [~]# service httpd reload; echo $?
Reloading httpd: [FAILED]
0


Version-Release number of selected component (if applicable):
httpd-2.2.3-63.el5

How reproducible:
Always

Steps to Reproduce:
1. service httpd stop
2. service httpd reload
3. echo $?
  
Actual results:
0

Expected results:
1 (or non-zero)

Additional info:

Comment 1 Joe Orton 2012-01-20 16:55:54 UTC
LSB compliance fixes were done in RHEL6 per bug 546252, which include this fix; we can backport some/all of those as required.

Comment 2 Aleš Mareček 2012-01-23 13:39:32 UTC
Hi Joe,
I know it was fixed in RHEL-6. I also know there are no plans for LSB in RHEL-5 but if it's possible it will be nice to have this function (these functions) fixed.
I wonder why PM didn't endorse LSB for RHEL-5, it's part of that distribution, and it's recommended to use it.
Thanks and Regards!

Comment 5 RHEL Program Management 2012-04-19 11:50:05 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 11 errata-xmlrpc 2013-01-08 05:04:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0130.html