* CrPy (2003-07-15 16:22 +0200)
> Am Montag, 14. Juli 2003 18:14 schrieb Thorsten Kampe:
>> I want to start Zope on my one computer via xinetd. This is obviously
>> not as trivial as [1] as the startup scripts /etc/init.d/zope-2_6_1
>> and /etc/conf.d/zope-2_6_1 are rather long and complicated.
>>
>> Does anyone know how to achieve this?
>>
>> [1] service zope
>> {
>> type = UNLISTED
>> port = 8080
>> socket_type = stream
>> protocol = tcp
>> wait = no
>> user = zope
>> server = python z2.py
> Where shoud python search? Try to use the full path to $ZOPE_HOME
Thanks, but that was not my question. It was about incorporating and
starting this in xinetd:
setup_exports()
{
local EXPORT_LST="INSTANCE_HOME SOFTWARE_HOME ZOPE_HOME
FORCE_PRODUCT_LOAD \
PROFILE_PUBLISHER SUPPRESS_ACCESSRULE SUPPRESS_SITEROOT CLIENT_HOME \
ZEO_CLIENT EVENT_LOG_FORMAT EVENT_LOG_FILE EVENT_LOG_SEVERITY ZSYSLOG
\
ZSYSLOG_FACILITY ZSYSLOG_SERVER ZSYSLOG_ACCESS ZSYSLOG_ACCESS_FACILITY
\
ZSYSLOG_ACCESS_SERVER Z_DEBUG_MODE Z_REALM NO_SECURITY
ZOPE_SECURITY_POLICY \
ZSP_OWNEROUS_SKIP ZSP_AUTHENTICATED_SKIP DISALLOW_LOCAL_PRODUCTS \
ZOPE_DATABASE_QUOTA ZOPE_READ_ONLY ZSESSION_ADD_NOTIFY
ZSESSION_DEL_NOTIFY \
ZSESSION_TIMEOUT_MINS ZSESSION_OBJECT_LIMIT WEBDAV_SOURCE_PORT_CLIENTS
\
STX_DEFAULT_LEVEL ZOPE_DTML_REQUEST_AUTOQUOTE Z_MAX_STACK_SIZE \
FORCE_PRODUCT_RELOAD"
for N in $EXPORT_LST ; do
if [ -n "${N}" ] ; then export ${N} ; fi
done
}
and
start_zope()
{
local RESULT=
is_zope_dead >/dev/null
RESULT=${?}
if [ "${RESULT}" -eq 0 ] ; then
setup_exports
umask 077 # Recommended by Zope
env /usr/bin/${python} ${ZOPE_HOME}z2.py ${ZOPE_OPTS} &
RESULT=${?}
else
echo 'Zope is running independant of RC management.'
echo 'We are going to try and kill it.'
stop_zope
if [ "${?}" -eq 0 ] ; then
echo 'Successfully killed zope. Try to start zope again'
fi
fi
return ${RESULT}
--
[EMAIL PROTECTED] mailing list
