summaryrefslogtreecommitdiffstats
path: root/main/xen/xenstored.initd
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2012-11-20 12:28:04 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2012-11-21 08:56:55 +0000
commit2e34c29e4382c24c2438fd1a9419a68ba5f39d46 (patch)
treec10eba98195280376440ee9884795891c3e889c7 /main/xen/xenstored.initd
parent1325ba55f8c92648bdb6ca49f8248030cf48120c (diff)
downloadaports-2e34c29e4382c24c2438fd1a9419a68ba5f39d46.tar.bz2
aports-2e34c29e4382c24c2438fd1a9419a68ba5f39d46.tar.xz
xen: prevent xenstore from being restared
xenstore should not be restarted. If it is restarted watches are lost, and several key components like kernel backend drivers will cease to work.
Diffstat (limited to 'main/xen/xenstored.initd')
-rw-r--r--main/xen/xenstored.initd9
1 files changed, 5 insertions, 4 deletions
diff --git a/main/xen/xenstored.initd b/main/xen/xenstored.initd
index 70ae2149e..537b64e88 100644
--- a/main/xen/xenstored.initd
+++ b/main/xen/xenstored.initd
@@ -20,6 +20,10 @@ wait_xenstored_up() {
}
start() {
+ if xenstore-read -s / >/dev/null 2>&1; then
+ ewarn "Xenstore can only be started once"
+ return 0
+ fi
local _traceopt=
ebegin "Starting xenstored daemon"
@@ -51,9 +55,6 @@ start() {
}
stop() {
- ebegin "Stopping xenstored daemon"
- start-stop-daemon --stop --exec /usr/sbin/xenstored \
- --pidfile /var/run/xenstored.pid
- eend $?
+ ewarn "Xenstore can not be stopped"
}