Commit 019303d9 authored by kalvin's avatar kalvin

fixbugs

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