From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Zhiguo Subject: [PATCH] xend: prompt user start xencommons Date: Tue, 22 Jun 2010 10:02:23 +0800 Message-ID: <4C2019AF.70608@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org prompt user start xencommons first if it is not running. Signed-off-by: Yu Zhiguo 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