在开发服务器中,每天早上上班就发现tomcat自动停止了。
但是查log的情况下并没有发现问题。
发现时脚本中的tail -f在作怪
tail -f shows the logs continuously so the script doesn't finish it's execution automatically. When the ssh connection timed out while my script was still running, shell killed it WITH IT'S CHILD PROCESSES - a Tomcat server among others and that was the whole problem.