[zopeorg-checkins] CVS: NZO_SiteLayout/etc - zeo.conf.in:1.2
Tres Seaver
tseaver at zope.com
Mon Apr 29 16:02:03 EDT 2002
Update of /cvs-zopeorg/NZO_SiteLayout/etc
In directory cvs.zope.org:/tmp/cvs-serv10187/etc
Modified Files:
zeo.conf.in
Log Message:
- Add buildout for storage server.
=== NZO_SiteLayout/etc/zeo.conf.in 1.1.1.1 => 1.2 ===
-ZOPE_HOME = "<<BASE_DIR>>/opt/Zope"
-ZOPE_PORT = <<ZOPE_PORT_PREFIX>>00
-ZOPE_OPTS = "-W <<ZOPE_PORT_PREFIX>>88"
-ZOPE_LOG = pjoin(HERE, 'var', 'debug.log')
+#==============================================================================
+# ZEO storage server configuration
+#
+# Defines the following mappings:
+#
+# 'env' -- establishes runtime environment for appserver
+# 'opts' -- controls preferred settings for command-line options
+# 'storage' -- specifies parameters for storages mounted by appserver
+#
+# Expects to find in globals when execfile'd:
+#
+# 'pjoin' -- os.path.join
+# 'BASE_DIR' -- the base path for the appserver instance files
+#==============================================================================
-#ZEO Environment Settings
-ZEO['ZEO_SERVER_PORT'] = <<ZOPE_PORT_PREFIX>>01
+#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+# Environtment variables (see opt/Zope/doc/ENVIRONMENT.txt for others)
+#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-# ZEO zctl settings
-ZEO_WAIT_BAILOUT = 160
+# Where are stock Zope components?
+#
+env[ 'ZODB_HOME' ] = pjoin( BASE_DIR
+ , 'opt'
+ , 'Python2'
+ , 'lib'
+ , 'python2.1'
+ , 'site-packages'
+ )
+
+# Where are Zope's Python packages?
+#
+#env[ 'SOFTWARE_HOME' ] = pjoin( env[ 'ZOPE_HOME' ], 'lib', 'python' )
+
+# Where are instance-specific files / packages?
+#
+#env[ 'INSTANCE_HOME' ] = pjoin( BASE_DIR, 'var', 'zope' )
+
+env[ 'STORAGE_HOME' ] = pjoin( BASE_DIR, 'var', 'ZEOStorage' )
+
+# Where are appserver-process-specific files / packages?
+#
+#env[ 'CLIENT_HOME' ] = pjoin( env[ 'INSTANCE_HOME' ], 'var', 'client_name'
+
+# Run as which named ZEO client?
+#
+#env[ 'ZEO_CLIENT' ] = 'client_name'
+
+#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+# Command-line options (see opt/Zope/z2.py)
+#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+#------------------------------------------------------------------------------
+# Service listener ports
+#------------------------------------------------------------------------------
+
+# Listen for ZEO Clients on which ports? (can be tuple)
+# -p, default = 8001
+opts[ 'zeo_port' ] = 8001
+
+
+# Listen for ZEO Clients on which Unix domain socket?
+# -U, default = None (suppressed)
+opts[ 'unix_domain_socket' ] = None
+
+
+#------------------------------------------------------------------------------
+# Operational preferences
+#------------------------------------------------------------------------------
+
+# Run in debug mode? (one thread, don't background)
+# -D, default = disabled
+opts[ 'debug' ] = 0
+
+# Run in readonly mode? (no writes to database, pidfiles, or logfiles)
+# -r, default = disabled
+opts[ 'detailed_log_mode' ] = 0
+
+# Run as which user? (can be UID or username)
+# -u, default None -> use current id
+opts[ 'run_as_user' ] = None # run as current user
+
+
+#------------------------------------------------------------------------------
+# Network configuration
+#------------------------------------------------------------------------------
+
+# Use which host addresses? (can be tuple of IPs or hostnames)
+# -a, default None -> all interfaces
+opts[ 'host_address' ] = None
+
+
+#------------------------------------------------------------------------------
+# PID files
+#------------------------------------------------------------------------------
+
+# Write appserver PIDfile where?
+# ZEO_SERVER_PID env var, default INSTANCE_HOME/var/ZEO_SERVER.pid
+opts[ 'storage_server_pid' ] = pjoin( env[ 'STORAGE_HOME' ]
+ , 'ZEO_SERVER.pid'
+ )
+#------------------------------------------------------------------------------
+# Log files
+#------------------------------------------------------------------------------
+
+# Write summary debug log where?
+# STUPID_LOG_FILE env var, default BASE_DIR/var/zope/var/debug.log
+opts[ 'debug_logfile' ] = pjoin( env[ 'STORAGE_HOME' ], 'ZEO_SERVER.log' )
+
+#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+# Storage options
+#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+# What storages should we create? (must define at least the main one)
+#
+storage[ 'names' ] = ( '', )
+
+# Mount a ZEO client storage as the root storage for the appserver.
+#
+storage[ '' ] = ( 'ZODB.FileStorage'
+ , pjoin( env[ 'STORAGE_HOME' ], 'Data.fs' )
+ )
More information about the zopeorg-checkins
mailing list