From: Martin Schwenke Date: Mon, 31 Jan 2022 08:43:11 +0000 (+1100) Subject: ctdb-config: Drop CTDB_STARTUP_TIMEOUT X-Git-Tag: tevent-0.12.0~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3caddaafa0f8e3cc162df1b8a58281326f720249;p=thirdparty%2Fsamba.git ctdb-config: Drop CTDB_STARTUP_TIMEOUT This was added to be able to notice startup failures when unknown tunables were present in the configuration. Tunables are now set by the daemon, so this is no longer necessary. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/ctdb.sysconfig b/ctdb/config/ctdb.sysconfig index 2ec0e9d373e..fc57929fc68 100644 --- a/ctdb/config/ctdb.sysconfig +++ b/ctdb/config/ctdb.sysconfig @@ -9,6 +9,3 @@ ulimit -c unlimited # Useful if default detection doesn't work # CTDB_INIT_STYLE=debian - -# If ctdbd takes a long time to start -# CTDB_STARTUP_TIMEOUT=20 diff --git a/ctdb/config/ctdbd_wrapper b/ctdb/config/ctdbd_wrapper index 34827eaaa29..842ab4f406f 100755 --- a/ctdb/config/ctdbd_wrapper +++ b/ctdb/config/ctdbd_wrapper @@ -29,24 +29,6 @@ ctdbd="${CTDBD:-/usr/local/sbin/ctdbd}" start() { eval "$ctdbd" || return 1 - - # Wait until ctdbd has started and is ready to respond to clients. - _timeout="${CTDB_STARTUP_TIMEOUT:-10}" - _count=0 - while [ "$_count" -lt "$_timeout" ] ; do - if $CTDB runstate first_recovery startup running >/dev/null 2>&1 ; then - return 0 - fi - - _count=$((_count + 1)) - sleep 1 - done - - echo "Timed out waiting for initialisation - check logs" - # Attempt a shutdown just in case things are still running - $CTDB shutdown >/dev/null 2>&1 - drop_all_public_ips >/dev/null 2>&1 - return 1 } stop() diff --git a/ctdb/doc/ctdb.sysconfig.5.xml b/ctdb/doc/ctdb.sysconfig.5.xml index a7e5d49e7e6..26189348360 100644 --- a/ctdb/doc/ctdb.sysconfig.5.xml +++ b/ctdb/doc/ctdb.sysconfig.5.xml @@ -65,24 +65,6 @@ - - CTDB_STARTUP_TIMEOUT=NUM - - - NUM is the number of seconds to wait for - ctdbd - 1 complete early - initialisation up to a point where it is unlikely to - abort. If ctdbd doesn't complete the - "setup" event before this timeout then it is killed. - - - - Defaults: 10 - - - -