"Mark Thomas" <ma...@apache.org> wrote in message news:4afdf745.6000...@apache.org... > Caldarale, Charles R wrote: >>> From: Mark Thomas [mailto:ma...@apache.org] >>> Subject: Re: Tomcat really need Shutdown port >>> >>> If you set the shutdown port to -1 then the standard process >>> kill (ie kill -15 <pid> on linux) will perform a standard, >>> perfectly safe shutdown identical to what you would get if >>> the shutdown script worked (which it won't without a shutdown >>> port) >> >> Good to know. Anything equivalent for Windows? > > CTRL-C if running in a console. If running as a service, I don't *think* > the > shutdown port is used but you'd have to check. I'd test it / check the > source > myself, but I'm in the middle of something else I need to finish at the > moment. >
On *nix, jsvc doesn't use the shutdown port (it has it's own signal handling to do a clean shutdown). On Windows, you need the shutdown port (so that anybody with physical access to the machine can shutdown the service by using the scripts). This is because tomcatN.exe doesn't keep a thread alive on it's own after starting Tomcat, so there are no non-daemon threads left and Tomcat shuts down. > Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org