Waiting for tomcat to start up in a script

So here’s something that I have found that waits for tomcat to come up but rather than polling or a static time based wait, it uses FIFO pipeline to wait.

Drop this into a tomcat-util.sh file, make it executable and then source the file:

You’ll now have isTomcatUp available as a bash command.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.