Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
d22093f5
Commit
d22093f5
authored
Dec 06, 2016
by
nobodyiam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add max-time option to avoid unexpected hang
parent
dbf1eb46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
startup.sh
apollo-adminservice/src/main/scripts/startup.sh
+1
-1
startup.sh
apollo-configservice/src/main/scripts/startup.sh
+1
-1
startup.sh
apollo-portal/src/main/scripts/startup.sh
+1
-1
No files found.
apollo-adminservice/src/main/scripts/startup.sh
View file @
d22093f5
...
...
@@ -66,7 +66,7 @@ declare -i max_counter=16 # 16*5=80s
declare
-i
total_time
=
0
printf
"Waiting for server startup"
>>
$STARTUP_LOG
until
[[
((
counter
-ge
max_counter
))
||
"
$(
curl
-X
GET
--silent
--connect-timeout
1
--head
$SERVER_URL
|
grep
"Coyote"
)
"
!=
""
]]
;
until
[[
((
counter
-ge
max_counter
))
||
"
$(
curl
-X
GET
--silent
--connect-timeout
1
--
max-time
2
--
head
$SERVER_URL
|
grep
"Coyote"
)
"
!=
""
]]
;
do
printf
"."
>>
$STARTUP_LOG
counter+
=
1
...
...
apollo-configservice/src/main/scripts/startup.sh
View file @
d22093f5
...
...
@@ -66,7 +66,7 @@ declare -i max_counter=16 # 16*5=80s
declare
-i
total_time
=
0
printf
"Waiting for server startup"
>>
$STARTUP_LOG
until
[[
((
counter
-ge
max_counter
))
||
"
$(
curl
-X
GET
--silent
--connect-timeout
1
--head
$SERVER_URL
|
grep
"Coyote"
)
"
!=
""
]]
;
until
[[
((
counter
-ge
max_counter
))
||
"
$(
curl
-X
GET
--silent
--connect-timeout
1
--
max-time
2
--
head
$SERVER_URL
|
grep
"Coyote"
)
"
!=
""
]]
;
do
printf
"."
>>
$STARTUP_LOG
counter+
=
1
...
...
apollo-portal/src/main/scripts/startup.sh
View file @
d22093f5
...
...
@@ -66,7 +66,7 @@ declare -i max_counter=16 # 16*5=80s
declare
-i
total_time
=
0
printf
"Waiting for server startup"
>>
$STARTUP_LOG
until
[[
((
counter
-ge
max_counter
))
||
"
$(
curl
-X
GET
--silent
--connect-timeout
1
--head
$SERVER_URL
|
grep
"Coyote"
)
"
!=
""
]]
;
until
[[
((
counter
-ge
max_counter
))
||
"
$(
curl
-X
GET
--silent
--connect-timeout
1
--
max-time
2
--
head
$SERVER_URL
|
grep
"Coyote"
)
"
!=
""
]]
;
do
printf
"."
>>
$STARTUP_LOG
counter+
=
1
...
...
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