freebsd-ports/www/zope/files/zeo.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
916 B
Bash

#!/bin/sh
# Start or stop zope
# $FreeBSD$
# PROVIDE: zeo
# REQUIRE: DAEMON
# BEFORE: zope
# KEYWORD: shutdown
#
prefix=%%PREFIX%%
# Define these zope_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/zeo
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
zeo_enable=${zeo_enable:-"NO"} # Enable zeo server
zeo_instances=${zeo_instances:-""} # List of instancehome dirs
. %%RC_SUBR%%
name="zeo"
rcvar=`set_rcvar`
load_rc_config $name
extra_commands="status"
if checkyesno zeo_enable; then
for instance in $zeo_instances; do
required_files="${instance}/etc/${name}.conf ${instance}/bin/zeoctl"
zeo_command="${instance}/bin/zeoctl"
start_cmd="${zeo_command} start"
stop_cmd="${zeo_command} stop"
restart_cmd="${zeo_command} restart"
status_cmd="${zeo_command} status"
echo -n "Zeo instance ${instance} -> "
run_rc_command "$1"
done
fi