I wonder 开发者_开发百科if there is a way to detect if a Tomcat Server has been crashed on a LInux machine? How can i recover it (- start it) automatically?
I can do it through a cron job. But that is not what i Want!
I want to detect immediately the time that Tomcat crashed! Is there a way?
Any help?
Antonis
Take a look at mysqld_safe. It is mysql's launch script that monitors mysql and can recover from some errors and relaunch mysql again. You might get some hints on how to do the same thing for tomcat.
A link on how the script work is here.
精彩评论