Commit c706346c authored by Alain Takoudjou's avatar Alain Takoudjou

repman: do not bootstrap too fast when instance is not ready

parent 6b705beb
......@@ -50,15 +50,15 @@ md5sum = 864d419ea506c9ac543409ba7abb22b0
[init-root-wrapper-in]
_update_hash_filename_ = templates/init_root_wrapper.in
md5sum = 3ba02b99c3fcbc24b3659917980b310f
md5sum = 49c328bd61eea74d9fb009f6f1561eaf
[repman-manager-sh.in]
_update_hash_filename_ = templates/repman-manager.sh.in
md5sum = 96fcd571ebf5546957a9a8677a87c129
md5sum = 94b14f5f5cf87bd9fb3aaa8d12a199b4
[dbjobs-in]
_update_hash_filename_ = templates/dbjobs.in
md5sum = f273ed3cb2173f36ff8230b04424d4e3
md5sum = d2ebd2ec55bf8489789a52c808729925
[mysqld-need-start.sh.in]
_update_hash_filename_ = templates/mysqld-need-start.sh.in
......
#!{{ parameter_dict['bash-bin'] }}
#!/bin/bash
USER={{ parameter_dict['db-user'] }}
PASSWORD={{ parameter_dict['db-password'] }}
......
#!{{ dash_bin }}
#!/bin/bash
run_mysql () {
{{ mysql_bin }} --defaults-file="{{ mysql_conf }}" \
......@@ -7,7 +7,7 @@ run_mysql () {
if [ ! -f "{{ init_password_done }}" ]; then
for i in {30..0}; do
if echo 'SELECT 1' | run_mysql &> /dev/null; then
if run_mysql -e 'SELECT 1' &> /dev/null; then
break
fi
echo 'MySQL init process in progress...'
......
......@@ -20,7 +20,7 @@ wait_database () {
fi
echo ">> [$retry] waitdatabases returned code $CODE...";
fi
sleep 1
sleep 30
done
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment