-----Original Message----- From: Jerome Alet [mailto:alet@unice.fr] Sent: Friday, June 29, 2001 3:03 PM To: Dunigan, Craig Cc: zope@zope.org Subject: Re: [Zope] Perl daemon to restart hung Zope on RedHat
On Fri, Jun 29, 2001 at 01:14:59PM -0500, Dunigan, Craig wrote:
A while back there were many comments on the list about Zope hangs, and how to handle them. If anyone is interested, I wrote a Perl script that checks for a response from Zope on localhost and restarts it if there is no response. It uses the init script from
http://www.zope.org/Members/markoer2/resources/howtos/redhat_s tartup, and a
few Perl modules from CPAN. It runs as a daemon so that it can started once and ignored. I haven't done it, but you could probably write an init shell script for it, too. The only thing it lacks right now is writing into syslog for it's messages, but I expect I'll work that out in a day or so. Let me know if you want it, and I'll post it.
It ressembles something I've written last year:
http://www.zope.org/Members/jerome_alet/IsDaZope
too bad they aren't both in the same language ! we could have merged them if possible.
bye,
Jerome Alet
Jerome, I actually looked at IsDaZope, and I only went ahead with my own because I already knew how to 'daemonize' a Perl script, and I was under the impression that IsDaZope needed an attached console to run on. Let me know if I'm wrong, because I'd rather run yours, it seems much more fully developed than mine! Craig