xen-runit-scripts/xendomains.run

16 lines
349 B
Bash
Executable file

#!/bin/sh
set -e
sv s proc-xen > /dev/null || exit 1
sv s xenstored > /dev/null || exit 1
sv s xenconsoled > /dev/null || exit 1
sv s xen-init-dom0 > /dev/null || exit 1
[ -e /proc/xen/capabilities ] || exit 1
/bin/grep -q control_d /proc/xen/capabilities || exit 1
/usr/lib/xen/bin/xendomains start > /dev/null
exec chpst -b xendomains pause