[Zope] Zope and System V init

Sven Kirmess Sven Kirmess <sven.kirmess@gmx.net>
Tue, 28 Sep 1999 15:08:07 +0200


Monday, September 27, 1999, 4:55:43 PM, Ulrich wrote:

> my Linuxbox is not running 24/7. Normally it is booted once
> a day. My database (Oracle) is started with an System V 
> init script at boottime. Is there such a script for Zope?

I've created a g&d one for SuSE 6.2.


--------------------------------------------------------------
#! /bin/sh
#
# /sbin/init.d/zope
#

. /etc/rc.config

return=$rc_done
case "$1" in
    start)
        echo -n "Starting Zope"
        /usr/local/Zope-2.0.1-src/start >> /var/log/zope 2>&1 &
        echo -e "$return"
        ;;
    stop)
        echo -n "Shutting down Zope"
        /usr/local/Zope-2.0.1-src/stop
        echo -e "$return"
        ;;
    *)
        echo "Usage: $0 {start|stop}"
        exit 1
esac

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




 Sven

-- 
PGP-Key-ID: 0x881BF222