[Zope] Startup with zopectl

Ben Last (Zope) zope at benlast.com
Wed May 26 02:51:27 EDT 2004

It'll work at startup, but the beauty of the init.d system is that it'll
switch services on and off as you change runlevel, and also give you a way
to restart them.  Your fix won't shut Zope down neatly.  If you don't have
an init.d you may be running on a non-System V Unix.

Just in case it proves of use, here's my startup script,
/etc/rc.d/init.d/zope which manages Zope and Zeo, all in one little measure.
--start of script--
#       /etc/rc.d/init.d/zope

# Source function library.
. /etc/rc.d/init.d/functions

case "$1" in
        echo -n 'Starting zeo daemon: '
        /mnt/extended/zeo/bin/zeoctl start
        /mnt/extended/zeo/bin/zeoctl status
        echo -n 'Starting zope daemon: '
        /mnt/extended/floofs/bin/zopectl start
        echo -n 'Stopping zope daemon: '
        /mnt/extended/floofs/bin/zopectl stop
        echo -n 'Stopping zeo daemon: '
        /mnt/extended/zeo/bin/zeoctl stop
        $0 stop
        $0 start
        echo -n 'zeo daemon: '
        /mnt/extended/zeo/bin/zeoctl status
        echo -n 'zope daemon: '
        /mnt/extended/floofs/bin/zopectl status
        echo "Usage: /etc/rc.d/init.d/zope
        exit 1

exit 0
--end of script--
*That was a Brit culture joke. Apologies.

More information about the Zope mailing list