n
> echo "Its running - let's shutdown"
> $TOMCAT_HOME/bin/shutdown.sh
> TC_check
> fi
>
>
> while [ IS_RUNNING -eq 1 ] ; do
> echo "Still running"
> sleep 1
> TC_check
> done
>
> echo "Now startup ..."
> $TOMC
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 m