1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2022-01-31 19:43:11 +11:00 committed by Amitay Isaacs
parent 208034ecfe
commit 3caddaafa0
3 changed files with 0 additions and 39 deletions

View File

@ -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

View File

@ -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()

View File

@ -65,24 +65,6 @@
</listitem>
</varlistentry>
<varlistentry>
<term>CTDB_STARTUP_TIMEOUT=<parameter>NUM</parameter></term>
<listitem>
<para>
NUM is the number of seconds to wait for
<citerefentry><refentrytitle>ctdbd</refentrytitle>
<manvolnum>1</manvolnum></citerefentry> complete early
initialisation up to a point where it is unlikely to
abort. If <command>ctdbd</command> doesn't complete the
"setup" event before this timeout then it is killed.
</para>
<para>
Defaults: 10
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>