Commit b82848e8 authored by kalvin's avatar kalvin

log

parent 98a8b8ef
...@@ -36,6 +36,8 @@ fi ...@@ -36,6 +36,8 @@ 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
until [[ $count -eq 60 ]] || [[ $log_exist -eq 1 ]] until [[ $count -eq 60 ]] || [[ $log_exist -eq 1 ]]
do do
let count+=1 let count+=1
...@@ -45,8 +47,6 @@ do ...@@ -45,8 +47,6 @@ do
echo "log is exist!" echo "log is exist!"
log_exist=1 log_exist=1
else 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 fi
sleep 1 sleep 1
...@@ -61,5 +61,5 @@ nohup node /home/qg-xterm/demo/app.js & ...@@ -61,5 +61,5 @@ nohup node /home/qg-xterm/demo/app.js &
echo "frontail ./logs/*log -n 500 -d " echo "frontail ./logs/*log -n 500 -d "
frontail ./logs/*log -n 500 frontail ./logs/*log -n 500
# echo "tail -f ./logs/*log" echo "tail -f ./logs/*log"
# tail -f ./logs/*log tail -f ./logs/*log
\ No newline at end of file \ No newline at end of file
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