#! /bin/sh # # zope Start Zope. # NAME=zope PATH=/bin:/usr/bin:/sbin:/usr/sbin ZOPECTL=/usr/sbin/zopectl #trap "" 1 #trap "" 15 test -f $ZOPECTL || exit 0 case "$1" in start) echo -n "Starting Zope: $NAME" if $ZOPECTL start > /dev/null 2>&1 then echo "." else echo "... failed." fi ;; stop) echo -n "Stopping Zope: $NAME" $ZOPECTL stop > /dev/null echo "." ;; restart) echo -n "Restarting Zope: $NAME" $ZOPECTL restart echo "." ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|reload|reload-modules|force-reload|restart}" exit 1 ;; esac exit 0