提交 3f8e9067 编写于 作者: L liuyq-617

[TD-3326]<test>backup taos after taos coredump

上级 10da4aba
......@@ -24,11 +24,14 @@ function stopTaosd {
function dohavecore(){
corefile=`find $corepath -mmin 1`
proc=`echo $corefile|cut -d "_" -f2`
if [ -n "$corefile" ];then
echo 'taosd or taos has generated core'
if [[ $1 == 1 ]];then
exit 8
fi
echo 'taosd or taos has generated core'
echo '\n'|gdb /usr/local/taos/bin/$proc $corepath/$corefile -ex "bt 10" -ex quit
tar zcvf $corepath/taos_`date "+%Y_%m_%d_%H:%M:%S"`.tar.gz /usr/local/taos
if [[ $1 == 1 ]];then
exit 8
fi
fi
}
function runSimCaseOneByOne {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册