Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
a35a1022
Commit
a35a1022
authored
Dec 30, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update force-stop to respect STOP_WAIT_TIME
Closes gh-6223
parent
89569db7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
launch.script
...urces/org/springframework/boot/loader/tools/launch.script
+2
-2
No files found.
spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script
View file @
a35a1022
...
...
@@ -212,9 +212,9 @@ force_stop() {
do_force_stop
()
{
kill
-9
"
$1
"
&> /dev/null
||
{
echoRed
"Unable to kill process
$1
"
;
return
1
;
}
for
i
in
$(
seq
1
60
)
;
do
for
i
in
$(
seq
1
$STOP_WAIT_TIME
)
;
do
isRunning
"
$1
"
||
{
echoGreen
"Stopped [
$1
]"
;
rm
-f
"
$2
"
;
return
0
;
}
[[
$i
-eq
30
]]
&&
kill
-9
"
$1
"
&> /dev/null
[[
$i
-eq
STOP_WAIT_TIME/2
]]
&&
kill
"
$1
"
&> /dev/null
sleep
1
done
echoRed
"Unable to kill process
$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