cluster: STABLE31 - cman init: add rolling upgrade support for gfs2-cluster
Fabio M. Di Nitto
fabbione at fedoraproject.org
Wed Nov 17 08:22:24 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2bdcc60a10ea5ede353eaf9709ba518ee4fdc894
Commit: 2bdcc60a10ea5ede353eaf9709ba518ee4fdc894
Parent: 27c8333b40ede1e29155774bf9cb7822c9e71f8e
Author: Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate: Wed Nov 17 09:22:02 2010 +0100
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Wed Nov 17 09:22:02 2010 +0100
cman init: add rolling upgrade support for gfs2-cluster
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
cman/init.d/cman.in | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 33f5428..c0325b6 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -297,6 +297,14 @@ sshd_enabled()
return 1
}
+gfs_controld_enabled()
+{
+ if [ -f @INITDDIR@/gfs2-cluster ] && ! chkconfig2 gfs2-cluster; then
+ return 0
+ fi
+ return 1
+}
+
network_manager_enabled()
{
if status NetworkManager > /dev/null 2>&1 || \
@@ -794,6 +802,8 @@ start()
none \
"Starting dlm_controld"
+ gfs_controld_enabled && service gfs2-cluster start
+
runwrap start_ocfs2_controld \
ocfs2_enabled \
"Starting ocfs2_controld"
@@ -839,6 +849,8 @@ stop()
fence_join_enabled \
"Leaving fence domain"
+ gfs_controld_enabled && service gfs2-cluster stop
+
runwrap stop_dlm_controld \
none \
"Stopping dlm_controld"
More information about the cluster-commits
mailing list