Bug 184454

Summary: xend initscript exit code is inconsistent
Product: [Fedora] Fedora Reporter: Brian Brock <bbrock>
Component: xenAssignee: Daniel Veillard <veillard>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: katzj, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-13 16:43:19 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 179599    

Description Brian Brock 2006-03-08 17:06:17 EST
Description of problem:

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

How reproducible:
varies with kernel flavor

under 2.6.15-1.2032_FC5xen0 the xend initscript gives the exit codes:
# service xend status
# echo $?
# service xend start
# echo $?
# service xend status
# echo $?

So, under -xen0, an exit code of 0 from `service xend` indicates that xend is
successfully running.

Under 2.6.15-1.2032_FC5smp:

# service xend status
# echo $?
# service xend start
# echo $?
# service xend status
# echo $?

Expected results:
Exit codes of commands should be consistent - 0 should not indicate success on
one kernel, and failure on another.  The exit codes aren't useful as they
currently exist.
Comment 1 Brian Stein 2006-10-26 16:25:47 EDT
Is this bug still valid?  If not, please close.
Comment 2 Brian Brock 2006-11-13 16:40:59 EST

Currently, xend appears to always return 0.

Checked permutations of start, stop, status with xend running.  Also checked
initscript commands under the non-xen kernel.

Initscript commands (e.g. `service xend start`) under the non-xen kernel fail
Comment 3 Brian Brock 2006-11-13 16:43:19 EST
above behavior actually looks like a different bug, I'll search and file another
that's more appropriate.