From: Yu Zhiguo <yuzg@cn.fujitsu.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] xend: prompt user start xencommons
Date: Tue, 22 Jun 2010 10:02:23 +0800 [thread overview]
Message-ID: <4C2019AF.70608@cn.fujitsu.com> (raw)
prompt user start xencommons first if it is not running.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
diff -r be32d4fe1e8a -r 139ec4ec4067 tools/hotplug/Linux/init.d/xend
--- a/tools/hotplug/Linux/init.d/xend Tue Jun 22 17:39:37 2010 +0800
+++ b/tools/hotplug/Linux/init.d/xend Tue Jun 22 18:04:59 2010 +0800
@@ -37,6 +37,11 @@
case "$1" in
start)
+ service xencommons status >/dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ echo "xencommons should be started first."
+ exit 1
+ fi
mkdir -p /var/lock/subsys
touch /var/lock/subsys/xend
xend start
next reply other threads:[~2010-06-22 2:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-22 2:02 Yu Zhiguo [this message]
2010-06-22 15:02 ` [PATCH] xend: prompt user start xencommons Ian Jackson
2010-06-23 1:09 ` Yu Zhiguo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C2019AF.70608@cn.fujitsu.com \
--to=yuzg@cn.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).