summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-01-08 16:49:56 +1100
committerAmitay Isaacs <amitay@gmail.com>2013-01-09 12:45:59 +1100
commitaca92996698536ce24ef80f0979543b0074e2610 (patch)
tree5738cc36cdb2b342a43abded4f42049b0cd9b330
parent4f622fe9fb204a6362fee468d9c7e31e22acb124 (diff)
downloadsamba-aca92996698536ce24ef80f0979543b0074e2610.tar.gz
samba-aca92996698536ce24ef80f0979543b0074e2610.tar.xz
samba-aca92996698536ce24ef80f0979543b0074e2610.zip
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)
-rwxr-xr-xctdb/config/events.d/00.ctdb7
1 files changed, 3 insertions, 4 deletions
diff --git a/ctdb/config/events.d/00.ctdb b/ctdb/config/events.d/00.ctdb
index 847805bc64..02613536f3 100755
--- a/ctdb/config/events.d/00.ctdb
+++ b/ctdb/config/events.d/00.ctdb
@@ -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)