Gitweb: http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=2352c4bad21a4a... Commit: 2352c4bad21a4a470ad7f51a18c1d28afcb23455 Parent: 3e493a0883ef1fdc173ff25e48a3623cef7f2b0e Author: John Ruemker jruemker@redhat.com AuthorDate: Wed Mar 13 11:17:41 2013 -0400 Committer: Christine Caulfield ccaulfie@redhat.com CommitterDate: Fri Jul 19 13:24:03 2013 +0100
cman: create and destroy lockfile on restart
The lockfile was ony created and destroyed only when /etc/init.d/cman {stop, start} is called.
This patch adds lockfile create/destroy to the other functions
Resolves: rhbz#982670 Signed-off-by: Christine Caulfield ccaulfie@redhat.com --- cman/init.d/cman.in | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in index 384fa2f..7933478 100644 --- a/cman/init.d/cman.in +++ b/cman/init.d/cman.in @@ -834,6 +834,7 @@ start() fence_join_enabled \ "Joining fence domain"
+ touch $LOCK_FILE }
stop() @@ -883,6 +884,8 @@ stop() runwrap stop_configfs \ none \ "Unmounting configfs" + + rm -f $LOCK_FILE }
cmanstatus() @@ -933,7 +936,7 @@ fi # See how we were called. case "$1" in start) - start "$2" && touch $LOCK_FILE + start "$2" if [ "$INITLOGLEVEL" = "quiet" ]; then success echo @@ -944,7 +947,7 @@ stop) if [ -n "$2" ] && [ "$2" = "remove" ]; then cmanremove=remove fi - stop && rm -f $LOCK_FILE + stop if [ "$INITLOGLEVEL" = "quiet" ]; then success echo