mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +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)
|
||||
# Make sure CTDB daemon is ready to process requests
|
||||
if wait_until_ready ; then
|
||||
# set any tunables from the config file
|
||||
set_ctdb_variables
|
||||
fi || exit 1
|
||||
wait_until_ready || die "CTDB did not become ready for setup"
|
||||
# Set any tunables from the config file
|
||||
set_ctdb_variables || die "Failed to set CTDB tunables"
|
||||
;;
|
||||
|
||||
startup)
|
||||
|
Loading…
x
Reference in New Issue
Block a user