The code has been broken since commit
4b652c1527afe7eff4075c95946abfa114d74015.
If ctdbd isn't all the way up in time just make a basic attempt to
shut it down.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
eval "$ctdbd" "$ctdb_options" || return 1
# Wait until ctdbd has started and is ready to respond to clients.
- _pid=""
_timeout="${CTDB_STARTUP_TIMEOUT:-10}"
_count=0
while [ "$_count" -lt "$_timeout" ] ; do
sleep 1
done
- echo "Timed out waiting for initialisation - check logs - killing CTDB"
- kill_ctdbd "$_pid"
+ 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
}