ports/90904: zope startup script need modification to handle the new "faststart" option

Palle Girgensohn girgen at FreeBSD.org
Sun Dec 25 21:35:40 UTC 2005


And of course, the zeo.sh script must also be handled in the same way:

#!/bin/sh

# Start or stop zope
# $FreeBSD: ports/www/zope/files/zeo.sh,v 1.2 2005/02/18 16:52:17 pav Exp $

# PROVIDE: zeo
# REQUIRE: DAEMON
# BEFORE: zope
# KEYWORD: FreeBSD 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




More information about the freebsd-ports-bugs mailing list