diff options
| author | Martin Schwenke <martin@meltin.net> | 2008-10-02 20:44:02 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2008-10-02 20:44:02 +1000 |
| commit | bc86c0a1d5c9f1daeffa7b96a40fe35d357b0017 (patch) | |
| tree | 2d145b3d4f1d8bd4386463c47c6e93631f05cf44 /base/root/scripts | |
| parent | 3766b1252f59cbbd6b91cd2c5ccc0bb778dc9c3f (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-x | base/root/scripts/setup_samba.sh | 10 |
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 |
