I'm using CentOS 7 and Tomcat 8 to serve an online shop. After logging into the server via SSH, I usually run ./startup.sh
and everything works smoothly, except for one thing:
From time to time Tomcat shuts down, which, of course, results in the online shop not being available until I run ./startup.sh
again (manually).
Do you have any suggestions how to prevent Tomcat from shutting down?
Is it a good idea to write a script that checks the connection (via cURL, for example) and in case of error executs ./startup.sh
?