diff options
Diffstat (limited to 'www/zope211/files/zope29.sh.in')
-rw-r--r-- | www/zope211/files/zope29.sh.in | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/www/zope211/files/zope29.sh.in b/www/zope211/files/zope29.sh.in deleted file mode 100644 index 601a08ccc2a7..000000000000 --- a/www/zope211/files/zope29.sh.in +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -# -# Startup script for Zope server. -# -# $FreeBSD$ -# - -# PROVIDE: zope29 -# REQUIRE: DAEMON - -# Define these zope29_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/zope29 -# -# zope29_enable : bool -# Enable Zope ("YES") or not ("NO", the default). -# -# zope29_instances : list -# List of dirs with Zope's instances ("" by default). -# - -. %%RC_SUBR%% - -name="zope29" -rcvar=`set_rcvar` - -zope29ctl () { - for instance in $zope29_instances; do - if [ -d ${instance} ]; then - echo -n " Zope instance ${instance} -> " - ${instance}/bin/zopectl "$1" - fi - done -} - -zope29_start () { - echo "Starting Zope 2.9:" - zope29ctl "start" -} - -zope29_stop () { - echo "Stopping Zope 2.9:" - zope29ctl "stop" -} - -zope29_restart () { - echo "Restarting Zope 2.9:" - zope29ctl "restart" -} - - start_cmd="zope29_start" - stop_cmd="zope29_stop" -restart_cmd="zope29_restart" - -load_rc_config $name - -: ${zope29_enable="NO"} -: ${zope29_instances=""} - -cmd="$1" -[ $# -gt 0 ] && shift -[ -n "$*" ] && zope29_instances="$*" - -run_rc_command "${cmd}" |