Bug 63241

Summary: /etc/init.d/ldap status always return 0
Product: Red Hat Enterprise Linux 4 Reporter: Marco Lusini <m.lusini>
Component: openldapAssignee: Jan Safranek <jsafrane>
Status: CLOSED DUPLICATE QA Contact: Aaron Brown <abrown>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0CC: mwest
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-08 11:29:59 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 Marco Lusini 2002-04-11 16:37:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Description of problem:
Service script for OpenLDAP doesn't propagate status return codes,
and always return 0, even if openldap is not running.

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


How reproducible:
Always

Steps to Reproduce:
1.service ldap stop
2.service ldap status ; echo $?
3.
	

Actual Results:  [root@iride root]# service ldap stop
[root@iride root]# service ldap status ; echo $?
slapd is stopped
0


Expected Results:  [root@iride root]# service ldap stop
[root@iride root]# service ldap status ; echo $?
slapd is stopped
3


Additional info:

It is important to propagate the return code in order to use service script 
with Cluster Manager

Comment 1 Joe Orton 2005-07-27 12:49:20 UTC
Still current; init script just needs a 

  RETVAL=$?

after the status call.

Comment 2 Matthew West 2006-04-08 01:16:43 UTC
Just want to confirm that as of 2006-04-07 this bug is still present in Fedora Core 5.

Comment 3 RHEL Program Management 2007-05-30 08:45:03 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 4 Jan Safranek 2007-06-08 11:29:59 UTC

*** This bug has been marked as a duplicate of 242666 ***