1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00
freebsd-ports/www/zope211/files/zeo.sh
Pav Lucistnik e153f4d0be - Update to 2.7.4
PR:		ports/77633
Submitted by:	Gerhard Schmidt <estartu@augusta.de> (maintainer)
2005-02-18 16:52:17 +00:00

54 lines
918 B
Bash

#!/bin/sh
# Start or stop zope
# $FreeBSD$
# 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
if checkyesno zeo_enable; then
case "$1" in
start)
echo "Starting Zeo"
;;
stop)
echo "Stopping Zeo"
;;
restart)
echo "Restarting Zeo"
;;
*)
echo "Unknown action \"$1\""
;;
esac
for instance in $zeo_instances
do
if [ -r ${instance}/etc/${name}.conf -a -x ${instance}/bin/zeoctl ]; then
echo -n " Instance ${instance} -> "
${instance}/bin/zeoctl $1
fi
done
fi