Bug 523240

Summary: Initscript: bmc-watchdog incorrect exit codes
Product: [Fedora] Fedora Reporter: Petr Šplíchal <psplicha>
Component: freeipmiAssignee: Jan Safranek <jsafrane>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: jsafrane, ohudlick, pknirsch
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-10-02 09:48:52 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 Šplíchal 2009-09-14 14:46:57 UTC
Description of problem:

The bmc-watchdog initscript does not report correct exit status as
specified in the Fedora Initscript Guidelines:

Version-Release number of selected component (if applicable):
freeipmi-ipmidetectd-0.7.9-1.fc12.i586

Supplying a non-supported option should result in status 2:
2 invalid or excess argument(s)

FAIL :: Running 'service freeipmi-bmc-watchdog' (Expected 2, got 1)
FAIL :: Running 'service freeipmi-bmc-watchdog nothing' (Expected 2, got 1)

Additional info:
https://fedoraproject.org/wiki/Packaging:SysVInitScript#Exit_Codes_for_non-Status_Actions

Comment 1 Jan Safranek 2009-10-02 09:48:52 UTC
My patches were accepted upstream and they should be part of upcoming freeipmi-0.8.1 release.