Hi,
I'm hoping someone can help me figure out how to write a cron script and run it on a regular basis to detect if my tomcat 6 server is down, and if so to automatically restart it. My hosting company has provided me with 2 scripts (one to stop tomcat 6 and the other to start it), but I don't know how to write or start a cron job running to detect if tomcat has stopped. I'm a total beginner on this, so please bear with me.
Thanks,
Courtenay
PS the start/stop scripts I have are called using the following:
service tomcat6 stop
and
service tomcat6 start
Start Free Trial