未验证 提交 2d520e50 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2330 from taosdata/hotfix/sangshuduo/TD-670

make stop taosd by kill always done with continue check
......@@ -61,7 +61,6 @@ run general/parser/limit1_stb.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
......
......@@ -97,13 +97,17 @@ else
#relative path
RCFG_DIR=sim/$NODE_NAME/cfg
PID=`ps -ef|grep taosd | grep $RCFG_DIR | grep -v grep | awk '{print $2}'`
if [ -n "$PID" ]; then
while [ -n "$PID" ]
do
if [ "$SIGNAL" = "SIGINT" ]; then
echo killed by signal
echo try to kill by signal SIGINT
kill -SIGINT $PID
else
echo try to kill by signal SIGKILL
kill -9 $PID
fi
fi
sleep 1
PID=`ps -ef|grep taosd | grep $RCFG_DIR | grep -v grep | awk '{print $2}'`
done
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册