"Nikola Milutinovic" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>