Red Hat Bugzilla – Bug 430904
[RHEL5]: xend and xendomains init scripts have wrong return values
Last modified: 2014-02-02 17:36:22 EST
Description of problem:
The init scripts '/etc/init.d/xend' and '/etc/init.d/xendomains' return some
incorrect error codes. Some part of it also prevent the correct status command
call. For example:
# /etc/init.d/xend status
+ '[' '!' -d /proc/xen ']'
+ exit 0
# ll /proc/xen
ls: /proc/xen: No such file or directory
Version-Release number of selected component (if applicable):
Steps to Reproduce:
When fixing this bug, please obbey our init script guidelines and be sure that
status command is run correctly.
Our guidelines are on following two pages:
For an example of the script that returns the error codes correctly and always
runs status see:
Created attachment 335344 [details]
This is values correction patch for xen init scripts, tried to match specifications at those URLs. Anyway some links on those pages should be reviewed because pages doesn't exist at all.
Created attachment 335363 [details]
This is an updated version of my patch, mainly not to report errors when on running non-Xen kernel.
Created attachment 335845 [details]
Final version of patch
Final version of patch described above...
Fix built into xen-3.0.3-83.el5
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.