You have a few alternatives: 1) Kill the java process and then you can run startup.sh immediatetly 2) Write a wrapper script which calls shutdown.sh, then does one of the following to verify tomcat is shutdown before calling startup.sh a) The process is non-existent b) The port is no taken (use netstat) c) Parse catalina.out for the phrase saying tomcat was shutdown
-Tim Aleksi Kallio wrote: > I have a script that stops Tomcat (shutdown.sh), does stuff and then > restarts it (startup.sh). Doing stuff doesn't take long enough and > Tomcat refuses to restart because the port is still reserved. > > Removing the restart from script and waiting a few secs after running > the script, then restarting manually, works. It is just a bit > frustrating. Also if a restart too early, Tomcat fails to start and > produces a process that has to be killed by hand and it's also frustrating. > > How to check if Tomcat is stopped properly? > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>