From owner-freebsd-questions@FreeBSD.ORG Thu Mar 8 12:21:28 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 8B17916A402 for ; Thu, 8 Mar 2007 12:21:28 +0000 (UTC) (envelope-from drewjenkinsjr@yahoo.com) Received: from web62205.mail.re1.yahoo.com (web62205.mail.re1.yahoo.com [69.147.75.4]) by mx1.freebsd.org (Postfix) with SMTP id 4D22C13C441 for ; Thu, 8 Mar 2007 12:21:28 +0000 (UTC) (envelope-from drewjenkinsjr@yahoo.com) Received: (qmail 28961 invoked by uid 60001); 8 Mar 2007 12:20:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=Qs/R4br7nqBUTEWk2qMtEMGr7YyePAWXmwcDBtn83GgTblzMdV/+gBgE3pBXlXIYGEz66duuaHvtHmEI81Y0Tq2ioHpB7IcE1mpZWPahf60g4GvomPx3F1CAgN2Z+DOssUoenOL0PPvb3gtaqm24CTtHs1tlW1Bw+KtRpVWzoLY=; X-YMail-OSG: oJSr2rQVM1kmqFTZ3gIBMTdbDkIcBYe69Pd6ERPAac_pRUeyivf9xL_9n2Mo8r71xsBfKd9_ar3AKmTShtl.HS0Y4fEF8ysGYf3vUW4YJW33_ZX_euDiUb.PRk5k2uH1oEl6 Received: from [67.46.93.3] by web62205.mail.re1.yahoo.com via HTTP; Thu, 08 Mar 2007 04:20:40 PST X-Mailer: YahooMailRC/468 YahooMailWebService/0.6.132.8 Date: Thu, 8 Mar 2007 04:20:40 -0800 (PST) From: Drew Jenkins To: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <263543.26969.qm@web62205.mail.re1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 12:21:28 -0000 20I wrote the following script (with your help) to solve the problem I'm ha= ving with setting the MySQL environment and getting Zope up after the fact.= I have saved this in /usr/local/etc/rc.d/ If I run this after the machine = reboots, all is well. If I simply let it run in the reboot sequence, it doe= sn't do it's job! The sleep command is to give the server a chance to finis= h all its other bootup sequences, since that appears to be the factor messi= ng things up. But it doesn't work!! What can I do to tweak this to do what = I need it to do?=0ATIA,=0ADrew=0A=0A#!/bin/sh=0A=0Asleep 60=0Aif [ -n "$LD_= LIBRARY_PATH" ] ; then=0A export LD_LIBRARY_PATH=3D"${LD_LIBRARY_PATH}:/= usr/local/lib/mysql"=0Aelse=0A export LD_LIBRARY_PATH=3D"/usr/local/lib/= mysql"=0Afi=0A=0Acd /usr/local/zope/=0A./instance1/bin/zopectl stop=0A./ins= tance1/bin/zopectl start=0A./instance2/bin/zopectl stop=0A./instance2/bin/z= opectl start=0A=0A=0A=0A=0A=0A =0A_________________________________________= ___________________________________________=0AFood fight? Enjoy some health= y debate =0Ain the Yahoo! Answers Food & Drink Q&A.=0Ahttp://answers.yahoo.= com/dir/?link=3Dlist&sid=3D396545367