Commit af051329 authored by daidekun's avatar daidekun

touch log

parent 33dba094
...@@ -14,14 +14,16 @@ nohup java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${module_name}_gc.log -XX:+Prin ...@@ -14,14 +14,16 @@ nohup java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${module_name}_gc.log -XX:+Prin
echo "sleep 10" echo "sleep 10"
sleep 10 sleep 10
echo "ls -l ./logs" if ls ./*log 1> /dev/null 2>&1; then
ls -l ./logs echo "ls -l ./logs"
ls -l ./logs
echo "frontail logs/*.log -d -n 1000" else
frontail ./logs/*.log -d -n 1000 echo "files do not exist"
touch ./logs/tmp.log
fi
echo "node /home/demoXterm/demo/app.js" echo "node /home/demoXterm/demo/app.js"
nohup node /home/demoXterm/demo/app.js & nohup node /home/demoXterm/demo/app.js &
echo "tail -f ./logs/*.log" echo "frontail logs/*.log -d -n 1000"
tail -f ./logs/*.log frontail ./logs/*log -n 1000
\ 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