Bug 801291
Summary: | cumin init script with exit code 0 for unknown parameter | ||
---|---|---|---|
Product: | Red Hat Enterprise MRG | Reporter: | Stanislav Graf <sgraf> |
Component: | cumin | Assignee: | Trevor McKay <tmckay> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Peter Belanyi <pbelanyi> |
Severity: | unspecified | Docs Contact: | |
Priority: | low | ||
Version: | Development | CC: | athomas, esammons, ltoscano, matt, mkudlej, pbelanyi, tmckay |
Target Milestone: | 2.3 | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | cumin-0.1.5388-2 | Doc Type: | Bug Fix |
Doc Text: |
Cause
The sysvinit script for Cumin returned a status code of 0 for unknown commands.
Consequence
Rather than indicate an error, the status code returned indicated success.
Fix
The status code is now set to 2 on an unknown command.
Result
The sysvinit script returns a non-zero error code when it is passed an unknown command. The value '2' is commonly used to indicate this condition.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-03-07 13:25:20 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: |
Description
Stanislav Graf
2012-03-08 08:08:32 UTC
Fixed in revision 5378. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause The sysvinit script for Cumin returned a status code of 0 for unknown commands. Consequence Rather than indicate an error, the status code returned indicated success. Fix The status code is now set to 2 on an unknown command. Result The sysvinit script returns a non-zero error code when it is passed an unknown command. The value '2' is commonly used to indicate this condition. Testing notes Cumin will use '2' as the status code for unknown commands # service cumin dance Usage: /etc/init.d/cumin {start|stop|status|restart|condrestart} # echo $? 2 I was able to reproduce on cumin-0.1.5444-1 Verified on RHEL5 and RHEL6, both i386 and x86_64, with cumin-0.1.5648-1 |