Added xen-3.4.2, latest stable hypervisor and utils for xen dom0.
--HG-- extra : convert_revision : 40184def13fe87600d69623069bccbb0011cdc2f
This commit is contained in:
34
srcpkgs/xen/files/xend.rc
Normal file
34
srcpkgs/xen/files/xend.rc
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/sbin/runscript
|
||||
#
|
||||
# Script for starting xend in dom0 kernels.
|
||||
#
|
||||
command=/usr/sbin/xend
|
||||
pidfile=/var/run/xend.pid
|
||||
|
||||
depend()
|
||||
{
|
||||
need localmount
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
modprobe -q xen-evtchn || eend $? "Failed to load xen-evtchn module!"
|
||||
|
||||
if test -d /proc/xen && ! test -d /proc/xen/capabilities && \
|
||||
! grep ' xenfs$' /proc/filesystems >/dev/null && \
|
||||
! grep '^xenfs ' /proc/mounts >/dev/null; then
|
||||
ebegin "Mounting xenfs for xend"
|
||||
mount -t xenfs xenfs /proc/xen
|
||||
eend $?
|
||||
fi
|
||||
ebegin "Starting xend"
|
||||
${command} start
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
ebegin "Stopping xend"
|
||||
${command} stop
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user