Bug 521848

Summary: nscd initscript is not lsb compliant
Product: [Fedora] Fedora Reporter: Petr Muller <pmuller>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: fweimer, jakub, ohudlick, schwab
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: 2009-09-15 08:13: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: 521669    

Description Petr Muller 2009-09-08 14:11:35 UTC
Description of problem:
According to Fedora initscript guidelines ( https://fedoraproject.org/wiki/Packaging/SysVInitScript ), there are few minor buglets in nscd's initscript.

Version-Release number of selected component (if applicable):
nscd-2.10.1-4.x86_64

How reproducible:
always

========================
case 1) Starting already started, and stopping already stopped nscd actions report [FAILED] and return code 1. According to the guidelines, these actions should be considered success and 0 should be returned. 

<quote>
For all other initscript actions, the init script must return an exit status of zero if the action was successful. In addition to straightforward success, the following situations are also to be considered successful:
    ( ... )
    * running start on a service already running
    * running stop on a service already stopped or not running 
</quote>

Example:
# service nscd start; service nscd start; echo $?
Starting nscd:                                             [  OK  ]
Starting nscd: /usr/sbin/nscd: already running
                                                           [FAILED]
1
========================
case 2) condrestart, try-restart actions report return code 1 and failure when the action is attempted on stopped nscd. According to the guidelines, this case should be considered success and 0 should be returned as RC.

<quote>
For all other initscript actions, the init script must return an exit status of zero if the action was successful. In addition to straightforward success, the following situations are also to be considered successful:

    ( ... )
    * running condrestart or try-restart on a service already stopped or not running
</quote>

Example:
# service nscd status; service nscd try-restart; echo $?
nscd is stopped
1

Comment 1 Andreas Schwab 2009-09-15 08:13:06 UTC
Fixed in 2.10.90-22.