diff options
author | William Pitcock <nenolod@dereferenced.org> | 2014-01-03 13:36:57 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2014-01-03 13:36:57 +0000 |
commit | 930da6aa6b5ceef069a4b881d365ebdc07486833 (patch) | |
tree | 73f6b35d0182efaf66e99ff1611dbbb26d081e82 /main/xen/xenstored.initd | |
parent | 4c825a2884ff2910d84d948141f320bd3fad3b6c (diff) | |
download | aports-930da6aa6b5ceef069a4b881d365ebdc07486833.tar.bz2 aports-930da6aa6b5ceef069a4b881d365ebdc07486833.tar.xz |
Revert "Revert "main/xen: implement experimental support for running the xenstore as a stubdomain""
This reverts commit 4c825a2884ff2910d84d948141f320bd3fad3b6c.
Diffstat (limited to 'main/xen/xenstored.initd')
-rw-r--r-- | main/xen/xenstored.initd | 17 |
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" |