Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Nov 2004 18:23:43 GMT
From:      "Matthew X. Economou" <xenophon+fbsdports@irtnog.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/73622: Patch for www/zope/files/zope.sh rc.d script to support Zope instances also hosting a ZEO database
Message-ID:  <200411061823.iA6INh6F064343@www.freebsd.org>
Resent-Message-ID: <200411061830.iA6IUL0a040297@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411061823.iA6INh6F064343>