From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 17:43:26 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 3CA1816A402 for ; Wed, 7 Mar 2007 17:43:26 +0000 (UTC) (envelope-from drewjenkinsjr@yahoo.com) Received: from web62204.mail.re1.yahoo.com (web62204.mail.re1.yahoo.com [69.147.75.3]) by mx1.freebsd.org (Postfix) with SMTP id E0C5913C4AA for ; Wed, 7 Mar 2007 17:43:25 +0000 (UTC) (envelope-from drewjenkinsjr@yahoo.com) Received: (qmail 51879 invoked by uid 60001); 7 Mar 2007 17:43:25 -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=NFntzLXxdNJPAxRsDni1H6+zpBsWg6lYPDky1N9g5uDEK0RzXrdrCUL/HMGibvTHJGucdaljiRrBs9FCul/KyYOVehlN+NEZwcjylwtpqJsFG7SDQTfPVcQzrGQTOClTl7vYnlGzyy9LaPdxlQu1vOpOTcdgaQXGUHtK5skAdzc=; X-YMail-OSG: i9gvtQUVM1kxbGVLfn2SnqFYMwbvHE97dhzBv4kGG_9fViD1otx3pA1Hg.EYztuXfg-- Received: from [67.46.93.3] by web62204.mail.re1.yahoo.com via HTTP; Wed, 07 Mar 2007 09:43:25 PST X-Mailer: YahooMailRC/468 YahooMailWebService/0.6.132.8 Date: Wed, 7 Mar 2007 09:43:24 -0800 (PST) From: Drew Jenkins To: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <141754.45363.qm@web62204.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 17:43:26 -0000 Garret Cooper wrote:=0A=0A>Also, something to the effect like the following= is better for=0A>portability reasons:=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=0AI put that in the /usr/local/etc/rc.d/mysql-server sc= ript (which is #!/bin/sh) but it didn't work :(=0A=0A=0A=0AJerry McAllister= wrote:=0A=0A>What does your rc.conf look like?=0A=0A# -- sysinstall genera= ted deltas -- # Sat Feb 24 04:38:22 2007=0A# Created: Sat Feb 24 04:38:22 2= 007=0A# Enable network daemons for user convenience.=0A# Please make all ch= anges to this file, not to /etc/defaults/rc.conf.=0A# This file now contain= s just the overrides from /etc/defaults/rc.conf.=0Adefaultrouter=3D"203.223= .150.1"=0Ahostname=3D"server312.web.vi"=0Aifconfig_fxp0=3D"inet 203.223.150= .58 netmask 255.255.255.192"=0Alinux_enable=3D"YES"=0Asshd_enable=3D"YES"= =0Ausbd_enable=3D"YES"=0Apound_enable=3D"YES"=0Asendmail_enable=3D"NO"=0Ase= ndmail_submit_enable=3D"NO"=0Asendmail_outbound_enable=3D"NO"=0Asendmail_ms= p_queue_enable=3D"NO"=0Aslapd_enable=3D"YES"=0Aslapd_flags=3D'-h "ldapi://%= 2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/"'=0Aslapd_sockets=3D"/var/r= un/openldap/ldapi"=0Amysql_enable=3D"YES"=0ALD_LIBRARY_PATH=3D/usr/local/li= b/mysql/=0A=0AThat last line, of course, is useless.=0A=0A>Boot up with it = and then take a look at the values.=0A=0AWhat values and how do I look for = them?=0A=0A>make a startup script for whatever it is - probably the install= =0A>already put one in /usr/local/etc/rc.d/ =0A>and in that startup script= , source the /etc/rc.conf file.=0A=0AI did. Then I used Garrett's (see abov= e). No luck.=0ATIA,=0ADrew=0A=0A=0A=0A=0A =0A______________________________= ______________________________________________________=0AFood fight? Enjoy = some healthy debate =0Ain the Yahoo! Answers Food & Drink Q&A.=0Ahttp://ans= wers.yahoo.com/dir/?link=3Dlist&sid=3D396545367