freebsd-ports/www/zope/files/zope.sh
Doug Barton c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00

41 lines
1,011 B
Bash

#!/bin/sh
# Start or stop zope
# $FreeBSD: /tmp/pcvs/ports/www/zope/files/Attic/zope.sh,v 1.7 2006-02-20 20:47:50 dougb Exp $
# PROVIDE: zope
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
prefix=%%PREFIX%%
# Define these zope_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/zope
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
zope_enable=${zope_enable:-"NO"} # Enable zope
zope_instances=${zope_instances:-""} # List of instancehome dirs
. %%RC_SUBR%%
name="zope"
rcvar=`set_rcvar`
load_rc_config $name
extra_commands="status"
if checkyesno zope_enable; then
for instance in $zope_instances; do
required_files="${instance}/etc/${name}.conf ${instance}/bin/zopectl"
zope_command="${instance}/bin/zopectl"
start_cmd="${zope_command} start"
stop_cmd="${zope_command} stop"
restart_cmd="${zope_command} restart"
status_cmd="${zope_command} status"
echo -n "Zope instance ${instance} -> "
run_rc_command "$1"
done
fi