Init Script for Zope

An init script for zope on debian woody. Please adapt the path to zopeclt to your system:

  #!/bin/sh

  PATH=/bin:/usr/bin:/sbin:/usr/sbin
  ZOPECTL=/var/lib/zope/bin/zopectl

  test -f $ZOPECTL || exit 0

  . /etc/default/zope

  case "$1" in
      start|stop|restart|force-reload)
          $ZOPECTL $1 $INSTANCES
      ;;

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

  exit 0