diff -r d59c6834c1ef heartbeat/Xen
--- a/heartbeat/Xen	Mon Jan 04 11:45:29 2010 +0900
+++ b/heartbeat/Xen	Mon Jan 04 11:46:44 2010 +0900
@@ -299,9 +299,12 @@
       # If xm destroy fails, stop will eventually timeout.
       # This is the correct behaviour.
     fi
+
+    ocf_log info "Xen domain $DOMAIN_NAME stopped."
+  else
+    ocf_log info "Xen domain $DOMAIN_NAME already stopped." 
   fi
 
-  ocf_log info "Xen domain $DOMAIN_NAME stopped."
   Xen_Adjust_Memory 0
   return $OCF_SUCCESS
 }
@@ -374,9 +377,9 @@
 	DOMAIN_NAME=${DOMAIN_NAME:-${OCF_RESOURCE_INSTANCE}}
 fi
 
-if [ "X`which xm`" = X ]; then
-	return $OCF_ERR_INSTALLED
-fi
+for binary in xm sed awk; do
+    check_binary $binary
+done
 
 case $1 in
   start)		Xen_Start
