#!/sbin/runscript # Zope rc-script for Gentoo Linux # Copyright 2002 by Jason Shoemaker # Distributed under the terms of the GNU General Public License, v2 or later depend() { need net } # start() { ebegin "Starting zope" start-stop-daemon -S -q --pidfile ${ZOPE_HOME}var/Z2.pid \ --startas /usr/bin/python2.1 -- ${ZOPE_HOME}z2.py ${ZOPE_OPTS} eend $? "Failed to start zope" } # stop() { ebegin "Stopping zope" start-stop-daemon -o -q -K --pidfile ${ZOPE_HOME}var/Z2.pid RESULT=${?} # In case we have to kill zope by hand. mv ${ZOPE_HOME}var/Z2.pid ${ZOPE_HOME}var/Z2.pid.old eend $RESULT "Failed to stop zope" }