tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <p...@betaversion.org>
Subject Re: STARTUP.SH DOESN'T WORKS FINE
Date Thu, 15 Nov 2001 10:28:44 GMT
"Nikola Milutinovic" <Nikola.Milutinovic@ev.co.yu> wrote:

> Good point.
> 
> "Every well written daemon" will do the following:
> 
> 1. parse input and complain if necessary
> 2. spawn a child and exit
> 3. a child will close STDIN, STDOUT, STDERR
> 4. a child will catch/ignore SIGHUP, SIGTERM, ...
> 5. a child will spawn a daemon process and exit.
> 
> Is this possible in Java? I don't thnink Java application can spawn another
> process, it can spawn a thread. Can it close it's connections to the
> controlling terminal? Tomcat seams to do it. Can it ignore/catch signals?

Sure it's possible :) There's also some code I wrote that does exactly that
(CVS repository jakarta-tomcat-service)... Works pretty well under Solaris
and MacOS/X 10.0/10.1

    Pier


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message