--- Ben Ricker <[EMAIL PROTECTED]> wrote: > I tried to get Daemontools running for Jserv (which is pretty similar) > and had no luck. My guess is that you might be able to get it to work if > you pass all the env variables using daemontools and just launch java. > However, since java is not a normal daemon, you will probably need > fghack to do it. > > I myself gave up; the thought of creating all those environment > variables was just too much, so I just rolled my own PID monitor whcih I > am porting to Tomcat. Basically, it will grep out the PID and write to a > file which I watch with a cronjob process.
I'b be interested to see that Ben - one of the problems I had trying something similar was that when tomcat gets swapped out, it appears on the process list as [java] and there is *no way* to my knowledge (or that of the various usenet groups/lists etc that I pestered) of getting back the command line to see which instance of the JVM you are dealing with - this was a problem for me on a machine running at least two JVMs. I had to use fghack already to stop supervise trying to start tomcat dozens of time but I still couldn't get multilog to work and supervise seemed to act weirdly afterwards (although svstat worked ok and svscan got into a confused state trying to start the run script in the logging subdirectory - something supervise won't do for me) BTW, I have a run script for kicking off JServ which I'll send you off-list in case its of any use... Cheers, cam __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
