Description of problem: The /etc/init.d/xendomains script is not compatible with how Fedora/RedHat have constructed /lib/lsb/init-functions. That file is currently set up to use shell aliasing to define the LSB init functions, and aliasing is quite fragile under sh. In particular, it seems not to be possible to define a shell function in terms of an aliased command. I've filed a bug on Fedora's lsb support (bug 171052), but in the meantime, it should be possible to fix the xendomains script not to depend on the lsb functions on a Red Hat system. Version-Release number of selected component (if applicable): xen-3.0-0.20050912.fc4 How reproducible: Constantly. Steps to Reproduce: 1. Install xen 2. Attempt to run /etc/init.d/xendomains start 3. Cry. Actual results: log_success_msg: command not found Expected results: Proper invocation of the Red Hat /etc/init.d/functions success routine. Additional info:
Created attachment 120075 [details] A modified version of the xendomains init script that tests for Red Hat environment before LSB
Problem persists in FC5.
*** Bug 186226 has been marked as a duplicate of this bug. ***
Patch floating around in xen-devel: http://lists.xensource.com/archives/html/xen-devel/2006-03/msg01411.html
This was fixed in recent releases, in spring IIRC, Daniel
Problem persists in FC5... # rpm -qf /etc/init.d/xendomains xen-3.0.3-1.fc5 server # service xendomains satus Usage: /etc/init.d/xendomains {start|stop|restart|reload|status} /etc/init.d/xendomains: line 69: log_failure_msg: command not found
I'll check this out when I get FC6 installed here.
Even if this bug was fixed using the patch referenced by Daniel, above, I think bug 171052 is really the underlying problem, and that bug is still marked as 'NEW' after over a year in Bugzilla.
Okay #4 is wrong, I fixed /etc/init.d/xend but not /etc/init.d/xendomains, damn ... reopening :-( Daniel
I confirm that this bug (actually, the underlying bug, bug 171052) is still active in Fedora Core 6.
This is fixed for rhel5 with redhat-lsb-3.1-12.2.EL.i386.rpm -- the /lib/lsb/init-functions use of aliases was wrong, it has been changed to use functions.
This bug is still present in xen-3.0.3-1.fc6 built 15-Nov-06, released to updates on 29-Dec-06
Fixed in current releases, i.e. Fedora 7: [root@paphio ~]# /etc/init.d/xendomains start [root@paphio ~]# /etc/init.d/xendomains stop Shutting down Xen domains:[done] [ OK ] [root@paphio ~]# thanks, Daniel