fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user