From owner-freebsd-questions@FreeBSD.ORG Thu Mar 8 21:07:10 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E302B16A400 for ; Thu, 8 Mar 2007 21:07:10 +0000 (UTC) (envelope-from drewjenkinsjr@yahoo.com) Received: from web62202.mail.re1.yahoo.com (web62202.mail.re1.yahoo.com [69.147.75.1]) by mx1.freebsd.org (Postfix) with SMTP id A82F213C474 for ; Thu, 8 Mar 2007 21:07:10 +0000 (UTC) (envelope-from drewjenkinsjr@yahoo.com) Received: (qmail 47732 invoked by uid 60001); 8 Mar 2007 21:07:10 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=bEfDRytfyWxJZR5xBL0lCQ4YticIR7R8NBGmMAVe+I7o6nIx9f9K5/KYQm/zG4qEAAdYkdRT7L0rkgZm4hxhZVgeZA4VREUrhURL6jK6xDuTR7yVpZ883CXWLCfr2cIJ/AzToEqKjNYUvnA9L6ka6LCg7dFZDZ9cJIMQFBkbPzY=; Received: from [66.82.9.67] by web62202.mail.re1.yahoo.com via HTTP; Thu, 08 Mar 2007 13:07:10 PST Date: Thu, 8 Mar 2007 13:07:10 -0800 (PST) From: Drew Jenkins To: freebsd-questions@freebsd.org In-Reply-To: <20070308190551.GA27233@gizmo.acns.msu.edu> MIME-Version: 1.0 Message-ID: <39179.43061.qm@web62202.mail.re1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Setting Env X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2007 21:07:11 -0000 #!/bin/sh if [ -n "$LD_LIBRARY_PATH" ] ; then export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib/mysql" echo "Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql because -n '$LD_LIBRARY_PATH' held true." >> /var/log/zz_mysql_start.log else export LD_LIBRARY_PATH="/usr/local/lib/mysql" echo "Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql, -n '$LD_LIBRARY_PATH' did not hold true." >> /var/log/zz_mysql_start.log fi cd /usr/local/zope/ if ./instance1/bin/zopectl stop ; then echo "Stopping zopectl instance 1." >> /var/log/zz_mysql_start.log fi if ./instance1/bin/zopectl start ; then echo "Restarting zopectl instance 1." >> /var/log/zz_mysql_start.log fi if ./instance2/bin/zopectl stop ; then echo "Stopping zopectl instance 2." >> /var/log/zz_mysql_start.log fi if ./instance2/bin/zopectl start ; then echo "Restarting zopectl instance 2." >> /var/log/zz_mysql_start.log fi sleep 3 echo "ending zz_mysql_start.sh at: `date`" >> /var/log/zz_mysql_start.log echo " " >> /var/log/zz_mysql_start.log Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql, -n '/usr/local/lib/mysql' did not hold true. Stopping zopectl instance 1. Restarting zopectl instance 1. Stopping zopectl instance 2. Restarting zopectl instance 2. ending zz_mysql_start.sh at: Thu Mar 8 14:57:47 UTC 2007 It kicked out that output when I tested it and also when I rebooted the server. However, Zope was still not up. I should qualify that. Zope "appears" to be up, but when I try to access it TTW (the ZMI) I can't reach the site. TIA, Drew --------------------------------- TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV.