when shutting down ctdb, allow it 30 seconds instead of 10 before will -9 the daemon
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 21 Feb 2012 08:02:36 +0000 (19:02 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 21 Feb 2012 08:02:36 +0000 (19:02 +1100)
(This used to be ctdb commit d8b400d76665f37ffd9de302eedcff9f23807225)

ctdb/config/ctdb.init

index 9b30b860045fca6781495fafc794dbbfbb6cfdd0..0b863447b5dc707d2bece74f2b29959d60354aaf 100755 (executable)
@@ -313,7 +313,7 @@ stop() {
     while pkill -0 -f $ctdbd ; do
        sleep 1
        count=$(($count + 1))
-       [ $count -gt 10 ] && {
+       [ $count -gt 30 ] && {
            echo -n $"killing ctdbd "
            pkill -9 -f $ctdbd
            pkill -9 -f $CTDB_BASE/events.d/