summaryrefslogtreecommitdiffstats
path: root/www/zope29/files/zeo.sh
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-11-16 00:02:25 +0000
committerpav <pav@FreeBSD.org>2004-11-16 00:02:25 +0000
commit6cee8ac0d5e1934f7fb087fd4d851d860f20ecbe (patch)
treed92790d6c7fd659bc9fba65dc00fe50fdb08a534 /www/zope29/files/zeo.sh
parent6d9fae7cd4201b6041f61b3892c5572a16806ce7 (diff)
downloadFreeBSD-ports-6cee8ac0d5e1934f7fb087fd4d851d860f20ecbe.zip
FreeBSD-ports-6cee8ac0d5e1934f7fb087fd4d851d860f20ecbe.tar.gz
- Update to 2.7.3
PR: ports/73969 Submitted by: Gerhard Schmidt <estartu@augusta.de> (maintainer)
Diffstat (limited to 'www/zope29/files/zeo.sh')
-rw-r--r--www/zope29/files/zeo.sh53
1 files changed, 53 insertions, 0 deletions
diff --git a/www/zope29/files/zeo.sh b/www/zope29/files/zeo.sh
new file mode 100644
index 0000000..099f579
--- /dev/null
+++ b/www/zope29/files/zeo.sh
@@ -0,0 +1,53 @@
+#!/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 gkrellmd
+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
OpenPOWER on IntegriCloud