This commit is contained in:
Oleg Sheynin 2023-04-24 18:15:20 -04:00
parent 14d640ba84
commit 8c3e92d094
2 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
0.0.7
0.0.8

View File

@ -66,7 +66,7 @@ function start_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
echo "${Script} doesn't respond. restarting..."
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} ..."
kill -9 ${pids}
fi
while (timeout 3 curl -s localhost:${AdminPort}/ping > /dev/null)
while (timeout 3 curl -s localhost:${ServicePort}/ping > /dev/null)
do
echo "Shutting down localhost:${AdminPort}/shutdown ..."
timeout 10 curl -s localhost:${AdminPort}/shutdown
echo "Shutting down localhost:${ServicePort}/shutdown ..."
timeout 10 curl -s localhost:${ServicePort}/shutdown
done
}