add stop taosd script
This commit is contained in:
parent
5176a3d607
commit
541630967c
|
@ -55,6 +55,8 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
cd ${WKC}/tests
|
cd ${WKC}/tests
|
||||||
./test-all.sh b1
|
./test-all.sh b1
|
||||||
|
cd ${WKC}/tests
|
||||||
|
./test-all.sh full jdbc
|
||||||
date'''
|
date'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,18 @@ NC='\033[0m'
|
||||||
tests_dir=`pwd`
|
tests_dir=`pwd`
|
||||||
IN_TDINTERNAL="community"
|
IN_TDINTERNAL="community"
|
||||||
|
|
||||||
|
function stopTaosd {
|
||||||
|
echo "Stop taosd"
|
||||||
|
systemctl stop taosd
|
||||||
|
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
|
||||||
|
while [ -n "$PID" ]
|
||||||
|
do
|
||||||
|
pkill -TERM -x taosd
|
||||||
|
sleep 1
|
||||||
|
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
function dohavecore(){
|
function dohavecore(){
|
||||||
corefile=`find $corepath -mmin 1`
|
corefile=`find $corepath -mmin 1`
|
||||||
if [ -n "$corefile" ];then
|
if [ -n "$corefile" ];then
|
||||||
|
@ -301,6 +313,7 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$1" == "full" ]; then
|
||||||
|
|
||||||
pwd
|
pwd
|
||||||
cd debug/
|
cd debug/
|
||||||
|
stopTaosd
|
||||||
nohup build/bin/taosd -c /etc/taos/ > /dev/null 2>&1 &
|
nohup build/bin/taosd -c /etc/taos/ > /dev/null 2>&1 &
|
||||||
sleep 30
|
sleep 30
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue