aboutsummaryrefslogtreecommitdiffstats
path: root/www/zope3/files/zope31.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/zope3/files/zope31.sh.in')
-rw-r--r--www/zope3/files/zope31.sh.in60
1 files changed, 0 insertions, 60 deletions
diff --git a/www/zope3/files/zope31.sh.in b/www/zope3/files/zope31.sh.in
deleted file mode 100644
index 9b44d991ee30..000000000000
--- a/www/zope3/files/zope31.sh.in
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-
-# Start or stop zope
-# $FreeBSD: /tmp/pcvs/ports/www/zope3/files/Attic/zope31.sh.in,v 1.1 2005-10-18 11:23:35 garga Exp $
-
-# PROVIDE: zope31
-# REQUIRE: DAEMON
-# BEFORE: LOGIN
-# KEYWORD: FreeBSD shutdown
-#
-
-# Define these zope31_* variables in one of these files:
-# /etc/rc.conf
-# /etc/rc.conf.local
-# /etc/rc.conf.d/zope31
-#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
-zope31_enable=${zope31_enable:-"NO"} # Enable zope
-zope31_instances=${zope31_instances:-""} # List of instancehome dirs
-
-. %%RC_SUBR%%
-
-name="zope31"
-rcvar=`set_rcvar`
-load_rc_config $name
-
-zopectl () {
- for instance in $zope31_instances; do
- if [ -d ${instance} ]; then
- echo -n " Zope instance ${instance} -> "
- ${instance}/bin/zopectl "$1"
- fi
- done
-}
-
-zope_start () {
- echo "Starting Zope 3.1:"
- zopectl "start"
-}
-
-zope_stop () {
- echo "Stopping Zope 3.1:"
- zopectl "stop"
-}
-
-zope_restart () {
- echo "Restarting Zope 3.1:"
- zopectl "restart"
-}
-
- start_cmd="zope_start"
- stop_cmd="zope_stop"
-restart_cmd="zope_restart"
-
-cmd="$1"
-[ $# -gt 0 ] && shift
-[ -n "$*" ] && zope31_instances="$*"
-
-run_rc_command "${cmd}"