[Ocfs2-tools-devel] [PATCH 8/8] o2cb.init: Start/stop o2hbmonitor

Sunil Mushran sunil.mushran at oracle.com
Thu Jun 23 15:17:51 PDT 2011


Start o2hbmonitor during o2cb online and stop it during offline.

Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
 vendor/common/o2cb.init.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/vendor/common/o2cb.init.sh b/vendor/common/o2cb.init.sh
index cfe3309..2e73108 100755
--- a/vendor/common/o2cb.init.sh
+++ b/vendor/common/o2cb.init.sh
@@ -1430,6 +1430,8 @@ online_o2cb()
         return 1
     fi
 
+    o2hbmonitor 2>/dev/null
+
     return 0
 }
 
@@ -1565,6 +1567,8 @@ offline_o2cb()
         exit 1
     fi
 
+    killall -e o2hbmonitor 2>/dev/null
+
     # ignoring force-offline as this should be enough
 
     unregister_cluster_o2cb "${CLUSTER}"
-- 
1.7.4.1




More information about the Ocfs2-tools-devel mailing list