Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 523177 - Initscript: ipmidetectd incorrect exit codes
Summary: Initscript: ipmidetectd incorrect exit codes
Alias: None
Product: Fedora
Classification: Fedora
Component: freeipmi
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jan Safranek
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: InitScriptsProject
TreeView+ depends on / blocked
Reported: 2009-09-14 11:45 UTC by Petr Šplíchal
Modified: 2016-06-01 01:38 UTC (History)
3 users (show)

Fixed In Version: freeipmi-0.7.12-3.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-14 13:54:32 UTC
Type: ---

Attachments (Terms of Use)

Description Petr Šplíchal 2009-09-14 11:45:35 UTC
Description of problem:

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

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

When ipmidetectd is stopped the initscript should return 3:

Steps to Reproduce:
# service freeipmi-ipmidetectd stop
# service freeipmi-ipmidetectd status
ipmidetectd is stopped
# echo $?
Actual results: 0
Expected results: 3


When configuration file is not present, 6 should be returned:

Steps to Reproduce:
# rm /etc/ipmidetectd.conf
# service freeipmi-ipmidetectd start
Starting ipmidetectd: ipmidetectd: No nodes configured
# echo $?

Actual results: 1
Expected results: 6


Comment 1 Petr Šplíchal 2009-09-14 13:41:59 UTC
Supplying a non-supported option should result in status 2:
2 invalid or excess argument(s)

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

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