-í ‹š™?csªdZdkZdkZdkZdkZdZdZdZd„Zdfd„ƒYZ d„Z d „Z d „Z d „Z d „Zd „Zedjo eƒndS(sª%(program)s -- create a ZEO instance. Usage: %(program)s home [port] Given an "instance home directory" and some configuration options (all of which have default values), create the following: /etc/zeo.conf -- ZEO config file /var/ -- Directory for data files: Data.fs etc. /log/ -- Directory for log files: zeo.log and zeoctl.log /bin/runzeo -- the zeo server runner /bin/zeoctl -- start/stop script (a shim for zeoctl.py) The script will not overwrite existing files; instead, it will issue a warning if an existing file is found that differs from the file that would be written if it didn't exist. Ns:# ZEO configuration file %%define INSTANCE %(instance_home)s address %(port)d read-only false invalidation-queue-size 100 # monitor-address PORT # transaction-timeout SECONDS path $INSTANCE/var/Data.fs level info path $INSTANCE/log/zeo.log program $INSTANCE/bin/runzeo socket-name $INSTANCE/etc/%(package)s.zdsock daemon true forever false backoff-limit 10 exit-codes 0, 2 directory $INSTANCE default-to-interactive true # user zope python %(python)s zdrun %(zope_home)s/zdaemon/zdrun.py # This logfile should match the one in the %(package)s.conf file. # It is used by zdctl's logtail command, zdrun/zdctl doesn't write it. logfile $INSTANCE/log/%(package)s.log sA#!/bin/sh # %(PACKAGE)s instance control script # The following two lines are for chkconfig. On Red Hat Linux (and # some other systems), you can copy or symlink this script into # /etc/rc.d/init.d/ and then use chkconfig(8) to automatically start # %(PACKAGE)s at boot time. # chkconfig: 345 90 10 # description: start a %(PACKAGE)s server PYTHON="%(python)s" ZOPE_HOME="%(zope_home)s" CONFIG_FILE="%(instance_home)s/etc/%(package)s.conf" PYTHONPATH="$ZOPE_HOME" export PYTHONPATH ZEOCTL="$ZOPE_HOME/ZEO/zeoctl.py" exec "$PYTHON" "$ZEOCTL" -C "$CONFIG_FILE" ${1+"$@"} s#!/bin/sh # %(PACKAGE)s instance start script PYTHON="%(python)s" ZOPE_HOME="%(zope_home)s" CONFIG_FILE="%(instance_home)s/etc/%(package)s.conf" PYTHONPATH="$ZOPE_HOME" export PYTHONPATH RUNZEO="$ZOPE_HOME/ZEO/runzeo.py" exec "$PYTHON" "$RUNZEO" -C "$CONFIG_FILE" ${1+"$@"} cstƒiƒdGHdS(Ns All done.(sZEOInstanceBuildersrun(((s5/usr/pkg/lib/python2.2/site-packages/ZEO/mkzeoinst.pysmain~s sZEOInstanceBuildercs#tZd„Zd„Zd„ZRS(Nc s®y)titidddgƒ\}}Wn*tij o}|GHtidƒnXti i tidƒ}|o&t h|d<}|GHtiƒnt |ƒddgjod|GHtidƒn|d}ti i|ƒ oti i|ƒ}nxPti D]3}ti iti i|dƒƒo |} Pnq Wd GHtidƒ|dot|dƒ}nd }t|ƒ|i| ||ƒ}|i||ƒdS( NishshelpiisprogramsUsage: %s home [port]sZopes*Can't find the Zope home (not in sys.path)i'(sgetoptssyssargvsoptssargsserrorsmsgsexitsosspathsbasenamesprograms__doc__slens instance_homesisabssabspathsentrysexistssjoins zope_homesintsports checkportsselfs get_paramssparamsscreate( sselfsargssportsprograms instance_homesparamssentrysmsgsoptss zope_home((s5/usr/pkg/lib/python2.2/site-packages/ZEO/mkzeoinst.pysrunƒs:)   "    csAhdd<dd<|d<|d<|d<tidd}x#|D]}tii||ƒ}q Wt|ƒ|SdS(Ns(spathsargssargsossjoinsmkdirs(sargsspathsarg((s5/usr/pkg/lib/python2.2/site-packages/ZEO/mkzeoinst.pysmakedirÒs  cs}tii|ƒodSntii|ƒ\}}|o|otii|ƒ ot|ƒnti|ƒdG|GHdS(NsCreated directory(sosspathsisdirssplitsheadstailsmkdirssmkdir(spathsheadstail((s5/usr/pkg/lib/python2.2/site-packages/ZEO/mkzeoinst.pysmkdirsÙs" csØt|d Œ}tii||dƒ}||}tii|ƒo[t |ƒ}|i ƒi ƒ}|iƒ|o(||i ƒjo d|GHn|Snnt |dƒ}|i|ƒ|iƒdG|GH|SdS(Niÿÿÿÿs)Warning: not overwriting existing file %rsws Wrote file(smakedirsargsspathsossjoinstemplateskwdssdatasexistssopensfsreadsstripsolddatascloseswrite(stemplatesargsskwdssolddatasfspathsdata((s5/usr/pkg/lib/python2.2/site-packages/ZEO/mkzeoinst.pysmakefileâs         csŠt|||Ž}tidƒ}ti|ƒd|@}ti ti|ƒti ƒ|jo#ti ||ƒd||fGHn|SdS(NiiÿsChanged mode for %s to %o( smakefilestemplatesargsskwdsspathsossumasksmodesstatsS_IMODEsST_MODEschmod(stemplatesargsskwdsspathsmodesumask((s5/usr/pkg/lib/python2.2/site-packages/ZEO/mkzeoinst.pys makexfileôs  &s__main__(s__doc__sosssyssstatsgetoptszeo_conf_templateszeoctl_templatesrunzeo_templatesmainsZEOInstanceBuilders checkportswhichsmakedirsmkdirssmakefiles makexfiles__name__(sstatszeo_conf_templates checkportsmakedirsmakefilesmkdirsssyssZEOInstanceBuilderszeoctl_templateswhichs makexfilesgetoptsmainsossrunzeo_template((s5/usr/pkg/lib/python2.2/site-packages/ZEO/mkzeoinst.pys?s"    + ;