[Zope] Anybody else running Zope under Daemontools ?

Frank Tegtmeyer fte@lightwerk.com
11 Mar 2002 09:06:20 +0100


Shriek@gmx.co.uk writes:

> like to run it under daemontools "just in case".  The only other references
> to using daemontools with zope are 2 years old. 
> http://www.zope.org/SiteIndex/search?text_content=daemontools

Wow, 2 years now. But still valid - we use this setup all time.

> Has anybody here been using zope with daemontools for quite a long time ? or
> at least with Zope 2.4.x or 2.5.x ?  Does it require a special 'run' script
> for the service, or could I simply use "exec /var/zope/start" ? 

Example:

#! /bin/sh
exec 2>&1
echo "------- start by supervise -------"

umask 077

PATH=/command:$PATH:/usr/local/bin
reldir=/web/zope1

# running instance
INSTANCE_HOME=`cd $reldir; pwd`
export INSTANCE_HOME

# used Zope-Version
INST_HOME=/web/Zope-2.5.1b1
export INST_HOME

exec setuidgid zope1 python \
   $INST_HOME/z2.py \
   -m '' -a 127.0.0.1 -f '8021' -p '' -d '' -w '8081' -F '' \
   -Z ''

Regards, Frank
-- 
CTO   fte@Lightwerk.com         http://www.Lightwerk.com/
Fax: +49-2434-80 07 94           Phone: +49-2434-80 07 81
Lightwerk GmbH * An der Kull 11 * 41844 Wegberg * Germany
Besuchen Sie uns auf der CeBIT:  Halle 6, Stand F68 / 595