summaryrefslogtreecommitdiff
path: root/www/zope210/files/zope28.sh.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@FreeBSD.org>2005-09-21 22:20:35 +0000
committerVsevolod Stakhov <vsevolod@FreeBSD.org>2005-09-21 22:20:35 +0000
commitedcea35a0e3a3e9b9cafb83c73eb29f51b3efb9f (patch)
treee0161bf42de763e066c05432f83e08a1d7fe20a3 /www/zope210/files/zope28.sh.in
parentAdd CVE name for tor -- diffie-hellman handshake flaw. (diff)
Change installation prefix and names of startup scripts for easy migration.
Permit running www/zope and www/zope28 at the same time on the same host. Use static pkg-plist instead dynamic one. PR: 86397 Submitted by: Denis Shaposhnikov (maintainer)
Notes
Notes: svn path=/head/; revision=143310
Diffstat (limited to 'www/zope210/files/zope28.sh.in')
-rw-r--r--www/zope210/files/zope28.sh.in53
1 files changed, 53 insertions, 0 deletions
diff --git a/www/zope210/files/zope28.sh.in b/www/zope210/files/zope28.sh.in
new file mode 100644
index 000000000000..899982321f2b
--- /dev/null
+++ b/www/zope210/files/zope28.sh.in
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Start or stop zope
+# $FreeBSD$
+
+# PROVIDE: zope28
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+#
+prefix=%%PREFIX%%
+
+# Define these zope28_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/zope28
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+zope28_enable=${zope28_enable:-"NO"} # Enable zope
+zope28_instances=${zope28_instances:-""} # List of instancehome dirs
+
+. %%RC_SUBR%%
+
+name="zope28"
+rcvar=`set_rcvar`
+load_rc_config $name
+
+if checkyesno zope28_enable; then
+
+ case "$1" in
+ start)
+ echo "Starting Zope 2.8"
+ ;;
+ stop)
+ echo "Stopping Zope 2.8"
+ ;;
+ restart)
+ echo "Restarting Zope 2.8"
+ ;;
+ *)
+ echo "Unknown action \"$1\""
+ ;;
+ esac
+
+ for instance in $zope28_instances
+ do
+ if [ -r ${instance}/etc/zope.conf -a -x ${instance}/bin/zopectl ]; then
+ echo -n " Instance ${instance} -> "
+ ${instance}/bin/zopectl $1
+ fi
+ done
+fi