From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 18:26:40 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 47BFF16A414 for ; Wed, 7 Mar 2007 18:26:40 +0000 (UTC) (envelope-from drewjenkinsjr@yahoo.com) Received: from web62209.mail.re1.yahoo.com (web62209.mail.re1.yahoo.com [69.147.75.8]) by mx1.freebsd.org (Postfix) with SMTP id 0EB2213C4C7 for ; Wed, 7 Mar 2007 18:26:39 +0000 (UTC) (envelope-from drewjenkinsjr@yahoo.com) Received: (qmail 3373 invoked by uid 60001); 7 Mar 2007 18:26:39 -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=dhTTsoZ8epcGnEx7YXjyYOR27emC4mvncDLUOm1KnFYagA1NsMzRAM46sN2wfAYh1uBfGDSFeueQMU4jKHkK6MviIMh1wWHPswslUIbxwTEnKLq00bCk17NAk/ObJPOoHjb5/UgAyeqg9LHdRSr7o148XVdS4MHFaV/Kyq+Rcmk=; X-YMail-OSG: TSMGDtgVM1knIT64hSuf1ohwSBmtejFiZJBCC33L_57ocKjK5zWKG5Yqi01Mh9iDdg0R44LbCl8gFBfSPOEHvkQJUqPqFPdc5.naLo5Ehf17XmqpoF23D.j9iJ3o.pMB96o- Received: from [67.46.93.3] by web62209.mail.re1.yahoo.com via HTTP; Wed, 07 Mar 2007 10:26:39 PST X-Mailer: YahooMailRC/468 YahooMailWebService/0.6.132.8 Date: Wed, 7 Mar 2007 10:26:38 -0800 (PST) From: Drew Jenkins To: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <44583.977.qm@web62209.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: Wed, 07 Mar 2007 18:26:40 -0000 ----- Original Message ----=0AFrom: Jerry McAllister =0A= =0A> > >#!/bin/sh=0A> > >=0A> > >if [ -n "$LD_LIBRARY_PATH" ] ; then=0A> > = > export LD_LIBRARY_PATH=3D"${LD_LIBRARY_PATH}:/usr/local/lib/mysql"=0A>= > >else=0A> > > export LD_LIBRARY_PATH=3D"/usr/local/lib/mysql"=0A> > >= fi=0A> >=0A> > I put that in the /usr/local/etc/rc.d/mysql-server script=0A= > > (which is #!/bin/sh) but it didn't work :(=0A> =0A> Does the script eve= n run?=0A=0AYes. It was only when I put this script in that mysql came up o= n boot.=0A=0A> Try putting some echo-s in their and see if anything happens= .=0A=0AI did that. I found out BTW that it executes the "if" part of the ab= ove, not the "else" part.=0A=0A> What are the permissions and ownership of = the /usr/local/etc/rc.d/mysql-server=0A> script file?=0A=0A# ls -al /usr/lo= cal/etc/rc.d/mysql-server=0A-r-xr-xr-x 1 root wheel 1824 Mar 7 11:29 /u= sr/local/etc/rc.d/mysql-server=0A=0ATIA,=0ADrew=0A=0A=0A=0A=0A=0A =0A______= ___________________________________________________________________________= ___=0ATV dinner still cooling? =0ACheck out "Tonight's Picks" on Yahoo! TV.= =0Ahttp://tv.yahoo.com/