-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of J. Atwood Sent: Saturday, August 12, 2000 1:04 AM To: kdie@nstp.com.my Subject: Re: [Zope] Zope - long running process
There is a switch in z2.py that allows you to point to a PID file. It will automatically restart your Zope installation once it goes down (if).
Like so... (start script)
___ #! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME exec /usr/local/zope/bin/python \ $PYTHONHOME/z2.py \ -w80 -Z /usr/local/zope/var/Z2.pid "$@"
___
It is the -Z /usr/local/zope/var/Z2.pid part.
Do a more on your z2.py and check out all the options.
i've tried this, with 2.1.x and 2.2.0; but i'm not sure it works well. there are times when my zope hangs, and i need to stop and start manually. it may be my programming. not too sure though. what are others experience?