Commit bde6eca2 authored by kalvin's avatar kalvin

error.log

parent 2a1db109
......@@ -37,6 +37,8 @@ fi
count=0
log_exist=0
log_path="/home/quant_group/logs"
touch ./logs/error.log
until [[ $count -eq 60 ]] || [[ $log_exist -eq 1 ]]
do
let count+=1
......@@ -45,10 +47,10 @@ do
if find "$log_path" -mindepth 1 -print -quit | grep -q .; then
echo "log is exist!"
log_exist=1
rm -rf ./logs/error.log
else
echo "Log is not exist! Waiting for server start."
touch ./logs/error.log
echo "[${count}]Log is not exist or java server start error." >> /logs/error.log
echo "[${count}]Log is not exist or java server start error." >> ./logs/error.log
fi
sleep 1
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