Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2007 09:43:24 -0800 (PST)
From:      Drew Jenkins <drewjenkinsjr@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Setting Env
Message-ID:  <141754.45363.qm@web62204.mail.re1.yahoo.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?141754.45363.qm>