ports/73622: Patch for www/zope/files/zope.sh rc.d script to support Zope instances also hosting a ZEO database
Matthew X. Economou
xenophon+fbsdports at irtnog.org
Sat Nov 6 18:30:22 UTC 2004
>Number: 73622
>Category: ports
>Synopsis: Patch for www/zope/files/zope.sh rc.d script to support Zope instances also hosting a ZEO database
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 06 18:30:21 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Matthew X. Economou
>Release: FreeBSD/i386 5.2-RELEASE-p11
>Organization:
IRTNOG.ORG
>Environment:
FreeBSD p03-0362-bsd.chmccorp.cchmc.org 5.2.1-RELEASE-p11
FreeBSD 5.2.1-RELEASE-p11 #0: Tue Oct 26 08:15:19 EDT 2004
root at p03-0362-bsd.chmccorp.cchmc.org:/usr/obj/usr/src/sys/P03-0362-BSD
i386
>Description:
If you add a ZEO database to your Zope instance, the "zope.sh" rc.d script
will not start or stop the ZEO database server. Instead, one must
manually start/stop the ZEO database server, or one must patch "zope.sh"
to do it.
>How-To-Repeat:
1. Install www/zope.
2. Use "make instance" to create a Zope instance.
3. Add a ZEO database to the instance via "mkzeoinstance.py".
4. Reconfigure the Zope instance to use the ZEO database.
5. Start Zope using the provided rc.d script. Only the Zope instance is
started. The ZEO database server is not running, so Zope does
nothing beyond binding to the appropriate service ports.
>Fix:
Apply the following patch to correct this minor problem:
--- ports/www/zope/files/zope.sh.orig Sat Nov 6 13:06:24 2004
+++ ports/www/zope/files/zope.sh Sat Nov 6 13:06:48 2004
@@ -49,5 +49,9 @@
echo -n " Instance ${instance} -> "
${instance}/bin/zopectl $1
fi
+ if [ -r ${instance}/etc/zeo.conf -a -x ${instance}/bin/zeoctl ]; then
+ echo -n " ZEO Database ${instance} -> "
+ ${instance}/bin/zeoctl $1
+ fi
done
fi
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list