From 41b83085a62b4904303de7cda1a6512b4a00e357 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 2 Jan 2017 19:47:54 -0800 Subject: [PATCH] Restore `kill -9` to launch.script force-stop Restore the `-9` flag to the send `kill` call which was inadvertently lost in commit a35a1022c2. Closes gh-6223 --- .../org/springframework/boot/loader/tools/launch.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script index a36f3d3ba19..fe8c4da9519 100755 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script @@ -214,7 +214,7 @@ do_force_stop() { kill -9 "$1" &> /dev/null || { echoRed "Unable to kill process $1"; return 1; } for i in $(seq 1 $STOP_WAIT_TIME); do isRunning "$1" || { echoGreen "Stopped [$1]"; rm -f "$2"; return 0; } - [[ $i -eq STOP_WAIT_TIME/2 ]] && kill "$1" &> /dev/null + [[ $i -eq STOP_WAIT_TIME/2 ]] && kill -9 "$1" &> /dev/null sleep 1 done echoRed "Unable to kill process $1";