[Zope] Problems installing Zope

Rafael Cordones Marcos rcm@bcnartdirecte.com
Thu, 14 Oct 1999 23:46:28 +0200


On Thu, Oct 14, 1999 at 09:52:56AM -0400, Joseph A. Martin wrote:
> 
> ./start directly executes the Zope command in the foreground, so
> ./start doesn't return until Zope is killed. Does anyone else know how 
> to work around this?
> 

I have a boot script for my Debian distro that starts Zope on boot and
shuts it down. 

/etc/init.d/zope
---------------------
#! /bin/sh
#
# zope  Start/Stop Zope. ;)
#

NAME=zope
PATH=/bin:/usr/bin:/sbin:/usr/sbin
ZOPEHOME=/home/rcm/devel/zope/zope
ZOPELOGFILE="$ZOPEHOME/var/Z2.log"
ZOPEOPTS="-z $ZOPEHOME -t 10"

case "$1" in
    start)
        echo Starting Zope...
        su rcm -c "${ZOPEHOME}/start ${ZOPEOPTS} > ${ZOPELOGFILE} 2>&1
	&" 
        ;;
    stop)
        echo Stopping Zope...
        su rcm -c "${ZOPEHOME}/stop"
        ;;
    restart)
        echo Restarting Zope...
        su rcm -c "${ZOPEHOME}/stop"
        su rcm -c "${ZOPEHOME}/start ${ZOPEOPTS} > ${ZOPELOGFILE} 2>&1
	&"
        ;;
    force-reload)
        echo force-reload option not yet implemented!!
        ;;
    *)
        echo "Usage: /etc/init.d/$NAME
	{start|stop|restart|force-reload}"
        exit 1
        ;;
esac

exit 0
---------------------

Hope it helps

Rafa C. Marcos

-- 
Linux. The Choice of a GNU Generation! -> http://www.debian.org