Starting with JDK 1.3 you can add shutdown hooks to your application
in response to a TERM signal (don't think it will work for KILL).
Alexander
On Tue, Aug 29, 2000 at 12:56:14AM -0300, Nicol?s Lichtmaier wrote:
> > Has anyone found a nice way of trapping unix signals, or of shutting
> > down a java app as part of the init process?
>
> You may make your application listen on a socket for commands, and have
> little utilities to do such things.
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]