Browse Source
wait 10s between attempts
feature/tunne_bootstrapscrips
Petr Michalec
6 years ago
No account linked to committer's email address
1 changed files with
2 additions and
2 deletions
-
galera/files/bootstrap.sh
|
|
@@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
service {{ service.service }} start |
|
|
|
|
|
|
|
counter=${1:-120} |
|
|
|
counter=${1:-60} |
|
|
|
retries=0 |
|
|
|
|
|
|
|
while [ $counter -gt 0 ] |
|
|
@@ -13,7 +13,7 @@ do |
|
|
|
fi |
|
|
|
counter=$(( counter - 1 )) |
|
|
|
retries=$(( retries + 1 )) |
|
|
|
sleep ${2:-4} |
|
|
|
sleep ${2:-10} |
|
|
|
done |
|
|
|
|
|
|
|
echo "Failed to connect to the MySQL service after $retries retries." |