xl: init scripts (v2)
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Jun 2010 14:49:46 +0000 (15:49 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Jun 2010 14:49:46 +0000 (15:49 +0100)
commit702890192a4c1f05aabb24332bec2721fb75399e
treebe41e2b7858c6483d253dc7505744487ace32768
parent9bb88be5420e9c804be52cfb597260672f41cc04
xl: init scripts (v2)

Now the init script is called xencommons and, as the name suggests, it
is a common script between xl and xend because it is used to start
xenconsoled, xenstored and xenbackendd and the initialization of these
three daemons has been removed from xend.  The global
xen_toolstack=xl/xend variable has been removed.  Regarding the
network setup, I made the vif scripts follow the same pattern as the
other scripts in xen-backend: a new script called vif-setup is
executed unconditionally. vif-setup is going to do the right thing
depending on the value of the environmental variable "script" (same
technique used before), defaulting to vif-bridge.  In the common
scenario the toolstack doesn't need to set the variable "script"
because vif-bridge is going to be called anyway.  There is no global
network script to setup the network bridges with xl, so if you are
using xl without xend, you need to manually configure the bridges
using your distro network setup, or, if you are lazy, you can just add
something like:

/etc/xen/scripts/network-bridge start

to your rc.local.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/hotplug/Linux/Makefile
tools/hotplug/Linux/init.d/sysconfig.xend [deleted file]
tools/hotplug/Linux/init.d/xend
tools/hotplug/Linux/init.d/xendomains
tools/hotplug/Linux/vif-setup [new file with mode: 0644]
tools/hotplug/Linux/xen-backend.rules
tools/hotplug/Linux/xl-vif-script [deleted file]
tools/libxl/xl_cmdimpl.c
tools/misc/xend