Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
c706346c
Commit
c706346c
authored
May 25, 2020
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repman: do not bootstrap too fast when instance is not ready
parent
6b705beb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
software/repman/buildout.hash.cfg
software/repman/buildout.hash.cfg
+3
-3
software/repman/templates/dbjobs.in
software/repman/templates/dbjobs.in
+1
-1
software/repman/templates/init_root_wrapper.in
software/repman/templates/init_root_wrapper.in
+2
-2
software/repman/templates/repman-manager.sh.in
software/repman/templates/repman-manager.sh.in
+1
-1
No files found.
software/repman/buildout.hash.cfg
View file @
c706346c
...
...
@@ -50,15 +50,15 @@ md5sum = 864d419ea506c9ac543409ba7abb22b0
[init-root-wrapper-in]
_update_hash_filename_ = templates/init_root_wrapper.in
md5sum =
3ba02b99c3fcbc24b3659917980b310
f
md5sum =
49c328bd61eea74d9fb009f6f1561ea
f
[repman-manager-sh.in]
_update_hash_filename_ = templates/repman-manager.sh.in
md5sum = 9
6fcd571ebf5546957a9a8677a87c129
md5sum = 9
4b14f5f5cf87bd9fb3aaa8d12a199b4
[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
...
...
software/repman/templates/dbjobs.in
View file @
c706346c
#!
{{ parameter_dict['bash-bin'] }}
#!
/bin/bash
USER
={{
parameter_dict[
'db-user'
]
}}
PASSWORD
={{
parameter_dict[
'db-password'
]
}}
...
...
software/repman/templates/init_root_wrapper.in
View file @
c706346c
#!
{{ 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...'
...
...
software/repman/templates/repman-manager.sh.in
View file @
c706346c
...
...
@@ -20,7 +20,7 @@ wait_database () {
fi
echo ">> [$retry] waitdatabases returned code $CODE...";
fi
sleep
1
sleep
30
done
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment