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

eventscripts: Fail the setup event if CTDB does not become ready

Currently it silently continues without attempting to set tunables.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 735ec99b99c7bb579851ce8293011aaf1dcc552a)
This commit is contained in:
Martin Schwenke 2013-01-08 16:49:56 +11:00 committed by Amitay Isaacs
parent 4f622fe9fb
commit aca9299669

View File

@ -79,10 +79,9 @@ case "$1" in
setup) setup)
# Make sure CTDB daemon is ready to process requests # Make sure CTDB daemon is ready to process requests
if wait_until_ready ; then wait_until_ready || die "CTDB did not become ready for setup"
# set any tunables from the config file # Set any tunables from the config file
set_ctdb_variables set_ctdb_variables || die "Failed to set CTDB tunables"
fi || exit 1
;; ;;
startup) startup)