瀏覽代碼

wait 10s between attempts

feature/tunne_bootstrapscrips
Petr Michalec 6 年之前
父節點
當前提交
689f9b75ac
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      galera/files/bootstrap.sh

+ 2
- 2
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."

Loading…
取消
儲存