aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/xenstored.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/xen/xenstored.initd')
-rw-r--r--main/xen/xenstored.initd17
1 files changed, 12 insertions, 5 deletions
diff --git a/main/xen/xenstored.initd b/main/xen/xenstored.initd
index 0e13c8c490..94237e35f1 100644
--- a/main/xen/xenstored.initd
+++ b/main/xen/xenstored.initd
@@ -44,11 +44,18 @@ start() {
_traceopt="-T /var/log/xen/xenstored-trace.log"
fi
- start-stop-daemon --start --exec /usr/sbin/xenstored \
- --pidfile /var/run/xenstored.pid \
- -- --pid-file=/var/run/xenstored.pid \
- $XENSTORED_OPTS $_traceopt
- wait_xenstored_up
+ if yesno "$XENSTORED_STUBDOM"; then
+ /usr/bin/init-xenstore-domain /usr/lib/xen/boot/xenstore-stubdom.gz \
+ $XENSTORED_STUBDOM_MEMORY \
+ $XENSTORED_FLASK_LABEL
+ wait_xenstored_up
+ else
+ start-stop-daemon --start --exec /usr/sbin/xenstored \
+ --pidfile /var/run/xenstored.pid \
+ -- --pid-file=/var/run/xenstored.pid \
+ $XENSTORED_OPTS $_traceopt
+ wait_xenstored_up
+ fi
eend $? || return 1
ebegin "Setting domain0 name record"