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

update

parent 102cbc1e
...@@ -42,9 +42,10 @@ function ack() ...@@ -42,9 +42,10 @@ function ack()
exit 0 exit 0
else else
echo "server $ip $project not startup in ${max_wait_ack_time} seconds..." 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`" #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` num=`grep -n "\[ERROR\]" $log_path | head -1 |cut -d ":" -f 1`
if [ -n "$num" ];then
echo "server $ip $project 启动日志错误信息截取如下:"
#echo "sed -n "$[$num-3],$[$num+10]p" $log_path" #echo "sed -n "$[$num-3],$[$num+10]p" $log_path"
sed -n "$[$num-3],$[$num+10]p" $log_path sed -n "$[$num-3],$[$num+10]p" $log_path
exit -1 exit -1
......
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