Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 42c94746ebea6466e09daac3949c7a784e2a6dad
Parent: 64889cf990215d6784c5de98ab40e899013296cc
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Thu Sep 24 21:33:36 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Thu Sep 24 21:33:36 2009 +0200
cman init: implement startup block breakpoints
http://sources.redhat.com/cluster/wiki/CmanInitNotes
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
cman/init.d/cman.in | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 8788258..aa8a585 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -685,6 +685,8 @@ stop_fence_xvmd()
start()
{
+ breakpoint="$1"
+
sshd_enabled && service sshd start
if [ "$INITLOGLEVEL" = "quiet" ]; then
@@ -719,10 +721,14 @@ start()
none \
"Setting network parameters"
+ [ "$breakpoint" = "setup" ] && exit 0
+
runwrap start_cman \
none \
"Starting cman"
+ [ "$breakpoint" = "join" ] && exit 0
+
runwrap unfence_self \
none \
"Unfencing self"
@@ -735,6 +741,8 @@ start()
none \
"Waiting for quorum"
+ [ "$breakpoint" = "quorum" ] && exit 0
+
runwrap start_groupd \
groupd_enabled \
"Starting groupd"
@@ -759,6 +767,8 @@ start()
cmannotifyd_enabled \
"Starting cmannotifyd"
+ [ "$breakpoint" = "daemons" ] && exit 0
+
runwrap join_fence_domain \
fence_join_enabled \
"Joining fence domain"
@@ -867,7 +877,7 @@ rtrn=0
# See how we were called.
case "$1" in
start)
- start && touch $LOCK_FILE
+ start "$2" && touch $LOCK_FILE
if [ "$INITLOGLEVEL" = "quiet" ]; then
success
echo