From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Nov 6 18:30:21 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C226716A4CF for ; Sat, 6 Nov 2004 18:30:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 922AF43D41 for ; Sat, 6 Nov 2004 18:30:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) iA6IULwU040302 for ; Sat, 6 Nov 2004 18:30:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iA6IUL0a040297; Sat, 6 Nov 2004 18:30:21 GMT (envelope-from gnats) Resent-Date: Sat, 6 Nov 2004 18:30:21 GMT Resent-Message-Id: <200411061830.iA6IUL0a040297@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Matthew X. Economou" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C56D016A4CE for ; Sat, 6 Nov 2004 18:23:43 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B503943D31 for ; Sat, 6 Nov 2004 18:23:43 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iA6INh8X064344 for ; Sat, 6 Nov 2004 18:23:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id iA6INh6F064343; Sat, 6 Nov 2004 18:23:43 GMT (envelope-from nobody) Message-Id: <200411061823.iA6INh6F064343@www.freebsd.org> Date: Sat, 6 Nov 2004 18:23:43 GMT From: "Matthew X. Economou" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: ports/73622: Patch for www/zope/files/zope.sh rc.d script to support Zope instances also hosting a ZEO database X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2004 18:30:22 -0000 >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: