[Zope] strategies for starting zope on redhat

Adam Karpierz karpierz@itl.pl
Mon, 15 May 2000 09:53:12 +0200


>Bill Anderson wrote:
>
>I have a sneaky suspicion he is tryign to call start form outside of
>the ZopeHome directory, and the start file is using relative paths.
>Answer: have the script first cd to the ZopeHome dir, or change the
>relativ epaths to absolutes.

Not needed because start script correctly set PYTHONHOME
through 'cd reldir; pwd' and (after Zope instalation process)
rest of the pathes are absolute pathes

eg.

#! /bin/sh
reldir=`dirname $0`
PYTHONHOME=`cd $reldir; pwd`
export PYTHONHOME
exec /home/adares/Zope/bin/python \
     $PYTHONHOME/z2.py \
     "$@"

>Consult the script
>In your start file, add '-Z var/zserver.pid' to the startup options,


Yes but it does not work when admin will reboot machine.
Crontab does.

Adam Karpierz
karpierz@itl.pl