Zope monitor - howTo ?
Hi, I have read in some mails on this list that there is some util named "Zope monitor" that one can use to keep Zope running (and yes it crashes, two times the last 4 days). Is there some howTo somewhere or do anyone out there have some cool links I can go to ?? Regards ------------------------------------------------- Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk
Anders Holmbech Nielsen wrote:
Hi,
I have read in some mails on this list that there is some util named "Zope monitor" that one can use to keep Zope running (and yes it crashes, two times the last 4 days).
Is there some howTo somewhere or do anyone out there have some cool links I can go to ??
Gidday Eh? There is a package called daemontools written by Dan Bernstein (master of the universe) that has a very reliable module contained in it called "supervise" - here is a brief note from the manpage. DESCRIPTION supervise runs program with the given args. It restarts program if program dies. supervise maintains status information, in a binary for- mat, in dir/status. It uses dir/status.new as a temporary file so that dir/status is never partially written. dir must already exist and be writable for supervise. supervise accepts commands from svc through the dir/svcon- trol file. supervise locks dir/lock, so two copies of supervise can- not run with the same dir. supervise pauses for a second before starting program, so that it does not loop too quickly if program exits immedi- ately. This seems to be what you are looking for - works well for me. You can grab the package at http://cr.yp.to/daemontools.html Take care, J.P. Racine Thot Networks racinejp@thot.net
Anders Holmbech Nielsen wrote:
Hi,
I have read in some mails on this list that there is some util named "Zope monitor" that one can use to keep Zope running (and yes it crashes, two times the last 4 days).
Is there some howTo somewhere or do anyone out there have some cool links I can go to ??
Look at z2.py in your Zope home directory. The -Z option is what you are looking for. Bill -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
Hi I have tested the -Z option but it doesn't seem to work quite as it should because it still crashes. Here is my start file: #! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME exec /usr/local/zope/bin/python \ $PYTHONHOME/z2.py -Z 'monitor.pid' \ -D "$@" is something completely bogus or what do ya' think ?? The file 'monitor.pid' seems fine and it contains the correct PID but this PID also quits when Zope is crashing.
Anders Holmbech Nielsen wrote:
Hi,
I have read in some mails on this list that there is some util named "Zope monitor" that one can use to keep Zope running (and yes it crashes, two times the last 4 days).
Is there some howTo somewhere or do anyone out there have some cool links I can go to ??
Look at z2.py in your Zope home directory.
The -Z option is what you are looking for.
Bill
-- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
Regards ------------------------------------------------- Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk
On Fri, Apr 07, 2000 at 10:12:03AM +0200, Anders Holmbech Nielsen wrote:
Hi
I have tested the -Z option but it doesn't seem to work quite as it should because it still crashes. Here is my start file:
#! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME exec /usr/local/zope/bin/python \ $PYTHONHOME/z2.py -Z 'monitor.pid' \ -D "$@"
You will have to remove the -D flag, as it will still prevent the fork. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
participants (4)
-
Anders Holmbech Nielsen -
Bill Anderson -
J.P. Racine -
Martijn Pieters