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. J
From: George <mail@okstudio.com.au> Organization: OK Studio Date: Sat, 12 Aug 2000 01:10:53 +1000 To: zope@zope.org Subject: [Zope] Zope - long running process
Could someone please explain how to make sure ZOPE does not stop working and if it does then it restarts again? My platform is FreeBSD 4.0 -stable. Do I use CRON ? Do I turn the debug option off to detach ZOPE from the terminal it was started from?
Regards, George mail@okstudio.com.au
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )