You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/06/09 17:02:12 UTC

[Bug 56607] shutdown.bat exits before shutdown

https://issues.apache.org/bugzilla/show_bug.cgi?id=56607

Christopher Schultz <ch...@christopherschultz.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
           Severity|minor                       |enhancement

--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
"shutdown.bat|catalina.bat stop" does not actually stop Tomcat, but instead
sends a signal to the running JVM process to shut down gracefully.

Note that catalina.sh does allow for a "stop N" where N is the maximum number
of seconds you'd like the script to wait for the Tomcat process to actually
stop. That has not been implemented in the DOS .bat version due to lack of
interest.

Sleeping in the DOS world is possible through a variety of means, but there is
no "sleep" command for that purpose so the *NIX fix won't work on
DOS/win32/etc. without modification. It's also awkward to check for a process's
status, but honestly its a bit awkward on *NIX, too.

Short-term fix is to use Cygwin and a UNIX-like shell. I'm making this an
enhancement request rather than a bug because the behavior described is
expected.

I'll see if I can make up a patch for catalina.bat that can replicate the
catalina.sh feature of "stop N". Would you be willing to test a candidate patch
for me?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org