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

next in thread | raw e-mail | index | archive | help
----- Original Message ----=0AFrom: Jerry McAllister <jerrymc@msu.edu>=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/



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