Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 628096

Summary: spurious error message from /sbin/service when doing a stop on no instances
Product: [Retired] 389 Reporter: Rob Crittenden <rcritten>
Component: UnknownAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: low Docs Contact:
Priority: high    
Version: 1.2.6CC: amsharma, edewata, jgalipea
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 17:13:04 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: 639035    
Attachments:
Description Flags
0001-Bug-628096-spurious-error-message-from-sbin-servi.patch nkinder: review+

Description Rob Crittenden 2010-08-27 21:43:07 UTC
Description of problem:

A bogus message is printed when trying to stop dirsrv with no configured instances.

# ls /etc/dirsrv/
config  ds.keytab  schema
# /sbin/service dirsrv stop
/bin/ls: cannot access /etc/dirsrv/slapd-*: No such file or directory
Shutting down dirsrv: 

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

389-ds-base-1.2.6-0.11.rc7.fc14.x86_64

Steps to Reproduce:
1. Install 389-ds-base, don't set up an instance
2. /sbin/service dirsrv stop
  
Expected results:

It should not print the /bin/ls messages. I would expect a [FAILED] though.

It correctly returns 0.

Comment 3 Endi Sukma Dewata 2010-10-04 16:13:02 UTC
Created attachment 451446 [details]
0001-Bug-628096-spurious-error-message-from-sbin-servi.patch

Comment 4 Endi Sukma Dewata 2010-10-05 16:36:53 UTC
To ssh://edewata.org/git/389/ds.git
   d04ffbe..5f1cf3b  master -> master
commit 5f1cf3bd4564f76438bca187c9686adcfe123216
Author: Endi S. Dewata <edewata>
Date:   Mon Oct 4 16:04:50 2010 -0400

Comment 5 Amita Sharma 2011-05-12 10:20:04 UTC
Installed:
  389-ds-base.x86_64 0:1.2.8.2-1.el6                                                                                                                         

Dependency Installed:
  389-ds-base-libs.x86_64 0:1.2.8.2-1.el6                                                                                                                    

Complete!
[root@amsharma repo]# ps -aef | grep slapd
root     19919 18844  0 15:49 pts/14   00:00:00 grep slapd
[root@amsharma repo]# /sbin/service dirsrv stop
  *** Error: no dirsrv instances configured
[root@amsharma repo]# 


VERIFIED