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:
parent
4f622fe9fb
commit
aca9299669
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user