On 08/12/2010 23:23, André Warnier wrote:
> Mark Thomas wrote:
>> Been there, tried that. There is no easy way (I could find) to
>> distinguish between a legitimate and illegitimate shut-down.
>>
> Naive suggestion : how about some global flag which the legitimate
> shutdown paths set (and the others don't know about), and which the
> "hook" in question checks ?

As I said, been there, tried that.

You can log when the shutdown command is used (Tomcat 7 does) but there
is no way to distinguish between a kill -15 and code calling
system.exit() (unless you run with a security manager as already discussed).

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to