From 14d84e1235b35d66423a2e6a31f7551fa03a994c Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 26 Mar 2009 22:14:42 +0100 Subject: [PATCH 10/15] First try to cleanly stop ctdb before killing it --- config/ctdb.init | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/config/ctdb.init b/config/ctdb.init index b525349..4776e7a 100755 --- a/config/ctdb.init +++ b/config/ctdb.init @@ -242,6 +242,10 @@ stop_server() { # very crude method sleep 2 pkill -9 -f valgrind + else if [ "$init_style" = "ubuntu" ]; then + start-stop-daemon --stop --quiet --exec /usr/sbin/ctdbd + RETVAL=$? + fi fi while killall -q -0 ctdbd; do sleep 1 -- 1.6.2