cluster: RHEL6 - cman init: fix "stop remove" operation
Fabio M. Di Nitto
fabbione at fedoraproject.org
Fri Oct 1 07:02:34 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=43fbabb3658f4eda981d18413ae337e78294d38b
Commit: 43fbabb3658f4eda981d18413ae337e78294d38b
Parent: 4548cf064eca28c59e12d7b88ed3ded193907c98
Author: Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate: Tue Sep 28 13:15:24 2010 +0200
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Fri Oct 1 09:01:41 2010 +0200
cman init: fix "stop remove" operation
re-instate support for stop remove that was erroneusly dropped
Resolves: rhbz#634718
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
cman/init.d/cman.in | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 787000f..50df96d 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -842,6 +842,9 @@ start)
;;
stop)
cmanremove=""
+ if [ -n "$2" ] && [ "$2" = "remove" ]; then
+ cmanremove=remove
+ fi
stop && rm -f $LOCK_FILE
if [ "$INITLOGLEVEL" = "quiet" ]; then
success
More information about the cluster-commits
mailing list