75From: Tres Seaver <tseaver@...108>
The script you are using to start Zope with looks like it must be 'zctl', the ancient precursor to the current 'zopectl': it 'execed' its Python config file (which is what you have here). That version was never shipped with Zope, and has not been in active use by its authors (I'm one of them) for more than three years now.
Hmm. Okay. I took over this box recently. So, how do I change things? Here's my current zopectl: #! /bin/sh PYTHON="/usr/local/zope/py235/bin/python" ZOPE_HOME="/usr/local/zope/278" INSTANCE_HOME="/usr/local/zope/instance2" CONFIG_FILE="/usr/local/zope/instance2/etc/zope.conf" ZEO_CONFIG_FILE="/usr/local/zope/instance2/var/zeo/etc/zeo.conf" SOFTWARE_HOME="/usr/local/zope/278/lib/python" PYTHONPATH="$SOFTWARE_HOME" export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME ZEOCTL="$SOFTWARE_HOME/Zope/Startup/zeoctl" ZDCTL="$SOFTWARE_HOME/Zope/Startup/zopectl.py" # exec "$PYTHON" "$ZEOCTL" -C "$ZEO_CONFIG_FILE" "$@" exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@" And, of course, my current zope.conf:
# Zope zctl settings ZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome') ZOPE_OPTS = '-p - -D' ZOPE_PORT = 7080 ZOPE_LOG = pjoin(HERE, 'var', 'debug.log') ZOPE_ENV['PRODUCTS_PATH'] = ("%(SOFTWARE_PRODUCTS)s:" + pjoin(HERE, '..', 'OtherProducts') + ":%(INSTANCE_PRODUCTS)s")
ZOPE_ENV['STUPID_LOG_FILE'] = ZOPE_LOG # ZEO Environment settings #ZEO['ZEO_SERVER_NAME'] = 'www.example.com'112 ZEO['ZEO_SERVER_PORT'] = 9999 # ZEO zctl settings ZEO_WAIT_BAILOUT = 160 # Don't try for more than num seconds
TIA, Nancy