Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 24e278e14a25367b8cb2fce8af484abd > files > 31

cman-2.0.115-96.el5_8.3.src.rpm

commit fd211a2e9bcce6e439fb717dfa467278527b539c
Author: Lon Hohberger <lhh@redhat.com>
Date:   Mon Sep 28 16:26:09 2009 -0400

    cman: Check for 'virsh' instead of 'xm'
    
    Resolves: bz516111
    
    Signed-off-by: Lon Hohberger <lhh@redhat.com>

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