cluster: RHEL55 - cman: Check for 'virsh' instead of 'xm'
Lon Hohberger
lon at fedoraproject.org
Tue Oct 27 19:27:33 UTC 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=fd211a2e9bcce6e439fb717dfa467278527b539c
Commit: fd211a2e9bcce6e439fb717dfa467278527b539c
Parent: 315e5b8746fbfa4bf61d7b3168b1947e8ab42a1f
Author: Lon Hohberger <lhh at redhat.com>
AuthorDate: Mon Sep 28 16:26:09 2009 -0400
Committer: Lon Hohberger <lhh at redhat.com>
CommitterDate: Tue Oct 27 15:27:18 2009 -0400
cman: Check for 'virsh' instead of 'xm'
Resolves: bz516111
Signed-off-by: Lon Hohberger <lhh at redhat.com>
---
cman/init.d/cman | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/cman/init.d/cman b/cman/init.d/cman
index b900f13..f717e8b 100755
--- a/cman/init.d/cman
+++ b/cman/init.d/cman
@@ -244,10 +244,11 @@ fence_xvmd_enabled()
fi
#
- # Check for the 'xm' binary. If it's not here, we are not
- # running on a machine capable of running xvmd.
+ # Check for the 'virsh' binary. If it's not here, we are not
+ # running on a machine capable of running xvmd, as fence_xvmd
+ # requires libvirt (which provides the virsh command)
#
- which xm &> /dev/null || return 1
+ which virsh &> /dev/null || return 1
#
# Check for presence of /cluster/fence_xvmd in cluster.conf
More information about the cluster-commits
mailing list