xen-runit-scripts/xen-init-dom0.run

15 lines
309 B
Bash
Executable file

#!/bin/sh
set -e
sv s proc-xen > /dev/null || exit 1
sv s xenstored > /dev/null || exit 1
[ -e /run/xen/xenstored.pid ] || exit 1
. /etc/conf.d/xencommons
/bin/grep -q control_d /proc/xen/capabilities || exit 0
/usr/lib/xen/bin/xen-init-dom0 $XEN_DOM0_UUID > /dev/null
exec chpst -b xen-init-dom0 pause