Setting Env
Drew Jenkins
drewjenkinsjr at yahoo.com
Wed Mar 7 18:26:40 UTC 2007
----- Original Message ----
From: Jerry McAllister <jerrymc at 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/
More information about the freebsd-questions
mailing list