Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: cts by andrew from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Mon, 27 Mar 2006 08:54:35 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: cts by andrew from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : andrew
Host    : 
Project : linux-ha
Module  : cts

Dir     : linux-ha/cts


Modified Files:
        OCFMSDummy.in 


Log Message:
A few tweaks

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/cts/OCFMSDummy.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- OCFMSDummy.in       25 Mar 2006 16:52:07 -0000      1.1
+++ OCFMSDummy.in       27 Mar 2006 15:54:35 -0000      1.2
@@ -71,7 +71,7 @@
     running=$?
 
     if [ ! $running -eq 0 ]; then
-         dummy_log "instance #$instance not running"
+         dummy_log "status: instance #$instance not running"
          return $OCF_NOT_RUNNING
     fi
     $GREP -e "master #$instance" $tmp > /dev/null
@@ -80,10 +80,10 @@
     rm -rf $tmp
 
     if [ $state -eq 0 ]; then    # master
-        dummy_log "instance #$instance is running as master"
+        dummy_log "status: instance #$instance is running as master"
         return $OCF_RUNNING_MASTER
     else        # slave
-        dummy_log "instance #$instance is running as slave"
+        dummy_log "status: instance #$instance is running as slave"
         return $OCF_SUCCESS
     fi 
 }
@@ -127,6 +127,10 @@
     fi
     do_stop_resource $instance
     do_start_resource $instance $request_state
+    rc=$?
+    dummy_log "after state changed: "
+    dummy_get_status $instance
+    return $rc
 }
 
 
@@ -134,7 +138,6 @@
     dummy_log "start instance #$OCF_RESKEY_clone slave"
     do_start_resource $OCF_RESKEY_clone "slave"
     if [ $OCF_RESKEY_clone -eq 0 ]; then
-        do_cmd $CRM_MASTER -D
         do_cmd $CRM_MASTER -v 1000
     fi
     sleep $start_delay




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 28, Issue 73
********************************************

Reply via email to