I've found that you cannot always rely on the shutdown script closing tomcat
quickly. If you have a thread that is not properly managed maybe not at all.
In my restart scripts I find the PID of the tomcat process, run the shutdown
script, sleep 10 seconds, test if the PID is still active and if
Most restart scripts that I've seen for Tomcat are home-brewed. Just
google for Tomcat restart script and I'm sure you'll find something a
bit more advanced then what you're using below.
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committe