Commit b190cfdd authored by Pedro Vilaca's avatar Pedro Vilaca Committed by Phillip Webb

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
parent 52264cd0
...@@ -166,7 +166,7 @@ stop() { ...@@ -166,7 +166,7 @@ stop() {
} }
do_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 for i in $(seq 1 60); do
isRunning $1 || { echoGreen "Stopped [$1]"; rm -f $2; return 0; } isRunning $1 || { echoGreen "Stopped [$1]"; rm -f $2; return 0; }
sleep 1 sleep 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment