aboutsummaryrefslogtreecommitdiff
path: root/www/zope28/files
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-04-20 14:18:32 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-04-20 14:18:32 +0000
commit5ea744a20f62502c7f3f2e5156894bd65d78dfd5 (patch)
tree4fb3bc61bac9e6fba15f7589c2795b4ab24af8b2 /www/zope28/files
parent49594194326422c4c169cebe61632b450e6fce2d (diff)
Notes
Diffstat (limited to 'www/zope28/files')
-rw-r--r--www/zope28/files/instance_message14
-rw-r--r--www/zope28/files/zope.conf_changes18
-rw-r--r--www/zope28/files/zope.sh53
-rw-r--r--www/zope28/files/zope.sh.in22
4 files changed, 81 insertions, 26 deletions
diff --git a/www/zope28/files/instance_message b/www/zope28/files/instance_message
new file mode 100644
index 000000000000..2521235227d8
--- /dev/null
+++ b/www/zope28/files/instance_message
@@ -0,0 +1,14 @@
+**********************************************************************
+
+Zope instance successfully installed
+
+If Zope should get started automatically when the system starts,
+please add the following lines to /etc/rc.conf
+
+zope_enable="YES"
+zope_instances="%%ZOPEINSTANCEDIR%%"
+
+If there is already a zope_instances entry please add
+%%ZOPEINSTANCEDIR%% separated by a space.
+
+
diff --git a/www/zope28/files/zope.conf_changes b/www/zope28/files/zope.conf_changes
index a7f67e1c18aa..ba227775266c 100644
--- a/www/zope28/files/zope.conf_changes
+++ b/www/zope28/files/zope.conf_changes
@@ -1,10 +1,20 @@
---- zope.conf.sample.orig Mon Nov 3 11:04:10 2003
-+++ zope.conf.sample Mon Nov 3 11:04:50 2003
-@@ -137,6 +137,7 @@
+--- work/Zope-2.7.0/skel/etc/zope.conf.in Fri Jan 9 00:34:08 2004
++++ /data/infosys/zope/etc/zope.conf Wed Apr 14 09:36:46 2004
+@@ -78,7 +78,8 @@
+ #
+ # Example:
+ #
+-# products /home/chrism/projects/myproducts
++products %%ZOPEBASEDIR%%/Products
++products $INSTANCE/Products
+
+
+ # Directive: environment
+@@ -137,6 +138,7 @@
# Example:
#
# effective-user chrism
-+effective-user @@@ZOPE_USER@@@
++effective-user %%ZOPE_USER%%
# Directive: enable-product-installation
diff --git a/www/zope28/files/zope.sh b/www/zope28/files/zope.sh
new file mode 100644
index 000000000000..62528a17de5f
--- /dev/null
+++ b/www/zope28/files/zope.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Start or stop zope
+# $FreeBSD: /tmp/pcvs/ports/www/zope28/files/Attic/zope.sh,v 1.1 2004-04-20 14:18:32 perky 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/gkrellmd
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+zope_enable=${zope_enable:-"NO"} # Enable gkrellmd
+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 aktion \"$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
diff --git a/www/zope28/files/zope.sh.in b/www/zope28/files/zope.sh.in
deleted file mode 100644
index 727778464e0e..000000000000
--- a/www/zope28/files/zope.sh.in
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-case "$1" in
-start)
- umask 077
- %%ZOPEBASEDIR%%/bin/zopectl --daemon start > /dev/null 2>&1
- echo -n " Zope"
- ;;
-stop)
- %%ZOPEBASEDIR%%/bin/zopectl stop > /dev/null 2>&1
- echo -n " Zope"
- ;;
-restart)
- %%ZOPEBASEDIR%%/bin/zopectl restart > /dev/null 2>&1
- echo -n " Zope"
- ;;
-*)
- echo "Usage: `basename $0` {start|stop}" >&2
- ;;
-esac
-
-exit 0