xen-runit-scripts/xenstored.run

14 lines
238 B
Bash
Executable file

#!/bin/sh
set -e
[ -e /proc/xen/capabilities ] || exit 1
sv s proc-xen > /dev/null || exit 1
/bin/grep -q control_d /proc/xen/capabilities || exit 1
sleep 3
/etc/xen/scripts/launch-xenstore > /dev/null
exec chpst -b xenstored pause