Bug 63241 - /etc/init.d/ldap status always return 0
Summary: /etc/init.d/ldap status always return 0
Keywords:
Status: CLOSED DUPLICATE of bug 242666
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: openldap
Version: 4.0
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Jan Safranek
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-11 16:37 UTC by Marco Lusini
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-06-08 11:29:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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