summaryrefslogtreecommitdiffstats
path: root/base/root/scripts
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2008-10-02 20:44:02 +1000
committerMartin Schwenke <martin@meltin.net>2008-10-02 20:44:02 +1000
commitbc86c0a1d5c9f1daeffa7b96a40fe35d357b0017 (patch)
tree2d145b3d4f1d8bd4386463c47c6e93631f05cf44 /base/root/scripts
parent3766b1252f59cbbd6b91cd2c5ccc0bb778dc9c3f (diff)
setup_samba.sh tries even harder to make the cluster healthy.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base/root/scripts')
-rwxr-xr-xbase/root/scripts/setup_samba.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/base/root/scripts/setup_samba.sh b/base/root/scripts/setup_samba.sh
index 16b2c6e..eb3eaff 100755
--- a/base/root/scripts/setup_samba.sh
+++ b/base/root/scripts/setup_samba.sh
@@ -98,12 +98,20 @@ echo "Restarting ctdb"
run_onnode all "service ctdb restart > /dev/null"
echo "Waiting for a few seconds..."
-sleep 10
+sleep 20
# why is this needed? Samba doesn't come up the first time??
echo "Restarting ctdb again"
run_onnode all "service ctdb restart > /dev/null"
+# let's hit this with a big hammer...
+for i in $(seq 1 5) ; do
+ echo "Waiting until healthy"
+ wait_until_healthy 60 && break
+ echo "Nope, restart ctdb again..."
+ run_onnode all "service ctdb restart > /dev/null"
+done
+
echo "Waiting for cluster to become healthy"
wait_until_healthy