Commit 88b1b5f3 authored by 智勇's avatar 智勇

update

parent 102cbc1e
......@@ -42,11 +42,12 @@ function ack()
exit 0
else
echo "server $ip $project not startup in ${max_wait_ack_time} seconds..."
echo "server $ip $project 启动日志错误信息截取如下:"
#echo "num=`grep -n \"\[ERROR\]\" $log_path | head -1 |cut -d ":" -f 1`"
num=`grep -n "\[ERROR\]" $log_path | head -1 |cut -d ":" -f 1`
#echo "sed -n "$[$num-3],$[$num+10]p" $log_path"
sed -n "$[$num-3],$[$num+10]p" $log_path
if [ -n "$num" ];then
echo "server $ip $project 启动日志错误信息截取如下:"
#echo "sed -n "$[$num-3],$[$num+10]p" $log_path"
sed -n "$[$num-3],$[$num+10]p" $log_path
exit -1
fi
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment