fix
This commit is contained in:
parent
14d640ba84
commit
8c3e92d094
@ -1 +1 @@
|
|||||||
0.0.7
|
0.0.8
|
||||||
@ -66,7 +66,7 @@ function start_it {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function check_it {
|
function check_it {
|
||||||
if !(timeout 3 curl -s localhost:${AdminPort}/ping > /dev/null)
|
if !(timeout 3 curl -s localhost:${ServicePort}/ping > /dev/null)
|
||||||
then
|
then
|
||||||
echo "${Script} doesn't respond. restarting..."
|
echo "${Script} doesn't respond. restarting..."
|
||||||
pids=$(ps -ef | grep "port=${ServicePort}" | grep "root=${ServiceDir}" | grep -v grep | tr -s ' ' |cut -d' ' -f2)
|
pids=$(ps -ef | grep "port=${ServicePort}" | grep "root=${ServiceDir}" | grep -v grep | tr -s ' ' |cut -d' ' -f2)
|
||||||
@ -87,10 +87,10 @@ function kill_it {
|
|||||||
echo "Killing ${pids} ..."
|
echo "Killing ${pids} ..."
|
||||||
kill -9 ${pids}
|
kill -9 ${pids}
|
||||||
fi
|
fi
|
||||||
while (timeout 3 curl -s localhost:${AdminPort}/ping > /dev/null)
|
while (timeout 3 curl -s localhost:${ServicePort}/ping > /dev/null)
|
||||||
do
|
do
|
||||||
echo "Shutting down localhost:${AdminPort}/shutdown ..."
|
echo "Shutting down localhost:${ServicePort}/shutdown ..."
|
||||||
timeout 10 curl -s localhost:${AdminPort}/shutdown
|
timeout 10 curl -s localhost:${ServicePort}/shutdown
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user