summaryrefslogtreecommitdiffstats
path: root/main/xen/xenstored.initd
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2014-01-03 13:36:57 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2014-01-03 13:36:57 +0000
commit930da6aa6b5ceef069a4b881d365ebdc07486833 (patch)
tree73f6b35d0182efaf66e99ff1611dbbb26d081e82 /main/xen/xenstored.initd
parent4c825a2884ff2910d84d948141f320bd3fad3b6c (diff)
downloadaports-930da6aa6b5ceef069a4b881d365ebdc07486833.tar.bz2
aports-930da6aa6b5ceef069a4b881d365ebdc07486833.tar.xz
Revert "Revert "main/xen: implement experimental support for running the xenstore as a stubdomain""
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 0e13c8c49..94237e35f 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"