#! /bin/sh
#
# zope	Start Zope.
#

# If you want to start Zope with arguments, enable the following line.
#ZOPEOPTS="-P 9000"

# If you want to use INSTANCE_HOME, enable the following line
#ZOPECTLOPTS="-I /var/lib/zope-dir"

NAME=zope
PATH=/bin:/usr/bin:/sbin:/usr/sbin
ZOPECTL=/usr/sbin/zopectl

# If you want debugging info enable the following lines
#STUPID_LOG_FILE=/var/log/zope-debug.log
#Z_DEBUG_MODE=1
#export STUPID_LOG_FILE Z_DEBUG_MODE

#trap "" 1
#trap "" 15

test -f $ZOPECTL || exit 0

case "$1" in
  start|stop|restart|force-reload)
    $ZOPECTL $ZOPECTLOPTS $@ $ZOPEOPTS
    ;;

  *)
    echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}"
    exit 1
    ;;
esac

exit 0
