summaryrefslogtreecommitdiff
path: root/www/zope210/files/zope.sh.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@FreeBSD.org>2005-09-18 21:33:04 +0000
committerVsevolod Stakhov <vsevolod@FreeBSD.org>2005-09-18 21:33:04 +0000
commit6b2c94a1a249771bc753e292d208b4619fd9ca2b (patch)
treed403701da93efd12cd068f67d200a212fe8857ae /www/zope210/files/zope.sh.in
parentFracplanet is an application to generate random planets and terrain (diff)
Add zope28 - new stable branch of zope application server.
Here are some of the "headlines" mentioned in the features list. Database Integration SQL and HTML in Harmony Multiple Data Sources Publish Databases Application Development DTML Scripting External Methods Content Management Builtin Objects Document Templates Web to Objects Integrated Object Database Managed Through the Web Direct URL Access to Objects PR: 85063 Submitted by: Denis Shaposhnikov <dsh@vlink.ru>
Notes
Notes: svn path=/head/; revision=143107
Diffstat (limited to 'www/zope210/files/zope.sh.in')
-rw-r--r--www/zope210/files/zope.sh.in53
1 files changed, 53 insertions, 0 deletions
diff --git a/www/zope210/files/zope.sh.in b/www/zope210/files/zope.sh.in
new file mode 100644
index 000000000000..f46daa2bdfa6
--- /dev/null
+++ b/www/zope210/files/zope.sh.in
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Start or stop zope
+# $FreeBSD: /tmp/pcvs/ports/www/zope210/files/Attic/zope.sh.in,v 1.7 2005-09-18 21:33:04 vsevolod Exp $
+
+# PROVIDE: zope
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# 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/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
+
+if checkyesno zope_enable; then
+
+ case "$1" in
+ start)
+ echo "Starting Zope"
+ ;;
+ stop)
+ echo "Stopping Zope"
+ ;;
+ restart)
+ echo "Restarting Zope"
+ ;;
+ *)
+ echo "Unknown action \"$1\""
+ ;;
+ esac
+
+ for instance in $zope_instances
+ do
+ if [ -r ${instance}/etc/${name}.conf -a -x ${instance}/bin/zopectl ]; then
+ echo -n " Instance ${instance} -> "
+ ${instance}/bin/zopectl $1
+ fi
+ done
+fi