Here's how I do it. 1. custom_zodb.py on ZEO Client import ZEO.ClientStorage ZSS_SERVER='10.0.0.1' # assuming your ZSS is running ZSS_PORT=8888 # on 10.0.0.1:8888 Storage=ZEO.ClientStorage.ClientStorage( ( ZSS_SERVER, ZSS_PORT ) ) 2. start script on ZEO client #! /bin/sh PATH="/bin:/usr/bin:/usr/sbin:/sbin" ZOPE_HOME=/usr/lib/zope INSTANCE_HOME=/usr/lib/zope INST_HOME=${INSTANCE_HOME} # CLIENT_HOME=/opt/storage/zope #STUPID_LOG_SEVERITY="-300" #export STUPID_LOG_SEVERITY export INST_HOME INSTANCE_HOME ZOPE_HOME PATH CLIENT_HOME sudo -u zope python $ZOPE_HOME/z2.py \ # zope is the user under which Zope runs -u zope \ -z $ZOPE_HOME \ -Z /var/run/zwatchdog.pid \ -w 8080 \ -f 8021 \ -m '' \ -l /var/log/zope \ -D \ >> /var/log/zope 2>&1 \ & 4. start script on ZEO Storage Server #! /bin/sh PATH="/bin:/usr/bin:/usr/sbin:/sbin" ZOPE_HOME=/usr/lib/zope INSTANCE_HOME=/usr/lib/zope INST_HOME=${INSTANCE_HOME} CLIENT_HOME=/opt/storage/zope #STUPID_LOG_SEVERITY="-300" # export STUPID_LOG_SEVERITY export INST_HOME INSTANCE_HOME ZOPE_HOME PATH CLIENT_HOME exec python /usr/lib/zope/ZEO/start.py -u zope -D -p 8888 -S 1=$ZOPE_HOME/zeo_custom_zodb:Storage \ >> /var/log/zope 2>&1 \ & 4. zeo_custom_zodb.py on ZSS import os,sys from DirectoryStorage.Full import Full as S from DirectoryStorage.Filesystem import Filesystem # Change this to point to your database directory fs = Filesystem('/opt/storage/zope/dirstorage') # assuming your dirstorage resides under /opt/storage/zope Storage = S(fs) You should sudo to the user ZEO expects ( not root ): create a user for the sole purpose of running ZEO. If you try to run ZEO as root or do not sudo to the ZEO user, you'd end up with ZEO clients waiting forever for answers from ZEO: that is, they'll just hang and you won't know what's happening since ZEO logs nothing about this weirdness even with "STUPID_LOG_SEVERITY=-300". I wasted more than a week to figure out what was going on. Hope this helps. Wankyu Choi --------------------------------------------------------------- Wankyu Choi CEO/President NeoQuest Communications, Inc. http://www.zoper.net http://www.neoboard.net --------------------------------------------------------------- -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Paul Winkler Sent: Wednesday, April 30, 2003 11:00 AM To: zope@zope.org Cc: tdickenson@geminidataloggers.com Subject: [Zope] DirectoryStorage & ZEO... how? i feel like i'm missing something terribly obvious... * with FileStorage, i used a custom_zodb.py to run zope as a zeo client. * DS includes an example custom_zodb.py apparently for running zope without zeo and with DS. ... but how do i get the zeo server to use DS? i've searched the docs and the DS mailing list archive and found nothing. but apparently people are doing it. i guess that i'm to use the -S argument to ZEO/start.py but i don't understand the docstring. what the heck is storage_name? -- Paul Winkler home: http://www.slinkp.com "Muppet Labs, where the future is made - today!" _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )