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 ----
From: Jerry McAllister <jerrymc@msu.edu>
> > >#!/bin/sh
> > >
> > >if [ -n "$LD_LIBRARY_PATH" ] ; then
> > > export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib/mysql"
> > >else
> > > export LD_LIBRARY_PATH="/usr/local/lib/mysql"
> > >fi
> >
> > I put that in the /usr/local/etc/rc.d/mysql-server script
> > (which is #!/bin/sh) but it didn't work :(
>
> Does the script even run?
Yes. It was only when I put this script in that mysql came up on boot.
> Try putting some echo-s in their and see if anything happens.
I did that. I found out BTW that it executes the "if" part of the above, not the "else" part.
> What are the permissions and ownership of the /usr/local/etc/rc.d/mysql-server
> script file?
# ls -al /usr/local/etc/rc.d/mysql-server
-r-xr-xr-x 1 root wheel 1824 Mar 7 11:29 /usr/local/etc/rc.d/mysql-server
TIA,
Drew
____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44583.977.qm>
