fix
This commit is contained in:
parent
e9a07b1b74
commit
732ba31473
@ -1 +1 @@
|
||||
0.0.9
|
||||
0.1.1
|
||||
@ -90,8 +90,14 @@ function kill_it {
|
||||
while (timeout 3 curl -s localhost:${ServicePort}/ping > /dev/null)
|
||||
do
|
||||
echo "Shutting down localhost:${ServicePort}/__shutdown__ ..."
|
||||
timeout 10 curl -s localhost:${ServicePort}/__shutdown__
|
||||
sleep 1
|
||||
timeout 5 curl -s localhost:${ServicePort}/__shutdown__
|
||||
|
||||
pids=$(ps -ef | grep "port=${ServicePort}" | grep "root=${ServiceDir}" | grep -v grep | tr -s ' ' |cut -d' ' -f2)
|
||||
echo pids=${pids}
|
||||
if [ "${pids}" != "" ]
|
||||
then
|
||||
kill -9 ${pids}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user