From b190cfdd6a444132476d65a1ef8efa2d3ab99b45 Mon Sep 17 00:00:00 2001 From: Pedro Vilaca Date: Mon, 9 Nov 2015 11:13:35 +0000 Subject: [PATCH] Don't use `kill -hup` in the launch script The HUP signal was being used to stop the service and for some reason, sometimes it was being ignored. This commit change forces the use of the TERM signal (the default signal of kill). Fixes gh-4378 Closes gh-4414 --- .../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 01ddf992f6..ad70066ca4 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 @@ -166,7 +166,7 @@ stop() { } do_stop() { - kill -HUP $1 &> /dev/null || { echoRed "Unable to kill process $1"; return 1; } + kill $1 &> /dev/null || { echoRed "Unable to kill process $1"; return 1; } for i in $(seq 1 60); do isRunning $1 || { echoGreen "Stopped [$1]"; rm -f $2; return 0; } sleep 1