Commit 18f2ffff authored by 智勇's avatar 智勇

up

parent d35742d6
......@@ -32,11 +32,11 @@ function ack()
for ((i=0;;))
do
#首先查询是否有启动失败的报错日志
num=`grep -n -E "APPLICATION FAILED TO START|Application startup failed" $log_path | cut -d ":" -f 1`
num=`awk '/Application startup failed/ || /APPLICATION FAILED TO START/ {print NR}' $log_path`
if [ -n "${num}" ];then
echo "server $ip $project startup failed in ${wait_ack_time} seconds..."
echo "server $ip $project 启动日志错误信息截取如下:"
sed -n "$[$num],$[$num+10]p" $log_path
sed -n "$[$num],$[$num+15]p" $log_path
exit -1
fi
......
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