Преглед на файлове

wait 10s on attempts for init_bootstrap

feature/tunne_bootstrapscrips
Petr Michalec преди 6 години
родител
ревизия
67541945e2
No account linked to committer's email address
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      galera/files/init_bootstrap.sh

+ 2
- 2
galera/files/init_bootstrap.sh Целия файл



service {{ service.service }} start service {{ service.service }} start


counter=${1:-120}
counter=${1:-60}
retries=0 retries=0


while [ $counter -gt 0 ] while [ $counter -gt 0 ]
fi fi
counter=$(( counter - 1 )) counter=$(( counter - 1 ))
retries=$(( retries + 1 )) retries=$(( retries + 1 ))
sleep ${2:-4}
sleep ${2:-10}
done done


echo "Failed to connect to the MySQL service after $retries retries." echo "Failed to connect to the MySQL service after $retries retries."

Loading…
Отказ
Запис