> -----Original Message-----
> From: Kief Morris [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 07, 2000 13:09
>
> How do you see this working? It seems to me that this couldn't be done
> entirely in Java, it would at least have to run the appropriate
> start script
> to make sure classpaths are set, etc. So ajp13 or the watchdog would have
> to run the start script if it found it couldn't talk to Tomcat.
The "workers.properties" file has all the necessary data.
It is also possible to start the watchdog instead of tomcat in those start
scripts. After having the watchdog started with the right environment
variables, this one can use them to call java to run Tomcat.
> It would also have
> to worry about restarting it unecessarily - suppose you restart Tomcat
> manually, how will the watchdog be prevented from thinking it was down
> and starting a second process?
You should restart the watchdog and not Tomcat directly. It is the only
way for the Watchdog to have control over Tomcat, so that it can also
kill the Tomcat process if this one freezes.
Notice that, if mod_jk recovers communication, the watchdog can be a
completely separated process.
Have fun,
Paulo Gaspar