#!/bin/sh [ ! -d /run/xen ] && mkdir -p /run/xen mount -t xenfs xenfs /proc/xen || exit 1 mount -t tmpfs xenstored /var/lib/xenstored || exit 1 grep -q control_d /proc/xen/capabilities || exit 1 exec xenstored --verbose --no-fork