tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikola Milutinovic" <Nikola.Milutino...@ev.co.yu>
Subject Re: STARTUP.SH DOESN'T WORKS FINE
Date Thu, 15 Nov 2001 11:41:00 GMT
> > 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

I'll look into it, but it is low on my priority list. Still, it's nice to know.

Nix.
Mime
View raw message