Hi,
Hmm.  It's a debatable question.

>Since the startup scripts don't keep track of how the JVM exited, it
>really doesn't matter what exit code is used since no one is probably
>tracking it.

I disagree.  People could keep track of it and use it for various things
(restart the server, notify admins, syslog calls, etc).

It is also a matter of good practice to use a standard exit code: 0 for
normal and nonzero for error conditions.

>If a System.exit() was called - then it was an abnormal shutdown. 

This is up for debate.  For most ordinary conditions, the above is true.
However, if a user knows (because, for example, a 3rd party app they use
within tomcat spawns non-daemon threads) that he/she will need to use
the shutdownWait option, then I would think that's a "normal" shutdown
with System.exit() is called.  

I don't think this is a major point, and unless people complain we
should probably leave it as is.

Yoav Shapira
Millennium ChemInformatics

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to