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
This commit is contained in:
Pedro Vilaca 2015-11-09 11:13:35 +00:00 committed by Phillip Webb
parent 52264cd0c2
commit b190cfdd6a
1 changed files with 1 additions and 1 deletions

View File

@ -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