Date: Wed, 7 Mar 2007 13:09:29 -0500 From: Jerry McAllister <jerrymc@msu.edu> To: Drew Jenkins <drewjenkinsjr@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Setting Env Message-ID: <20070307180929.GA15492@gizmo.acns.msu.edu> In-Reply-To: <141754.45363.qm@web62204.mail.re1.yahoo.com> References: <141754.45363.qm@web62204.mail.re1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 07, 2007 at 09:43:24AM -0800, Drew Jenkins wrote:
> Garret Cooper wrote:
>
> >Also, something to the effect like the following is better for
> >portability reasons:
> >
> >#!/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?
Try putting some echo-s in their and see if anything happens.
What are the permissions and ownership of the /usr/local/etc/rc.d/mysql-server
script file?
////jerry
>
> Jerry McAllister wrote:
>
> >What does your rc.conf look like?
>
> # -- sysinstall generated deltas -- # Sat Feb 24 04:38:22 2007
> # Created: Sat Feb 24 04:38:22 2007
> # Enable network daemons for user convenience.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> defaultrouter="203.223.150.1"
> hostname="server312.web.vi"
> ifconfig_fxp0="inet 203.223.150.58 netmask 255.255.255.192"
> linux_enable="YES"
> sshd_enable="YES"
> usbd_enable="YES"
> pound_enable="YES"
> sendmail_enable="NO"
> sendmail_submit_enable="NO"
> sendmail_outbound_enable="NO"
> sendmail_msp_queue_enable="NO"
> slapd_enable="YES"
> slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/"'
> slapd_sockets="/var/run/openldap/ldapi"
> mysql_enable="YES"
> LD_LIBRARY_PATH=/usr/local/lib/mysql/
>
> That last line, of course, is useless.
>
> >Boot up with it and then take a look at the values.
>
> What values and how do I look for them?
>
> >make a startup script for whatever it is - probably the install
> >already put one in /usr/local/etc/rc.d/
> >and in that startup script, source the /etc/rc.conf file.
>
> I did. Then I used Garrett's (see above). No luck.
> TIA,
> Drew
>
>
>
>
>
> ____________________________________________________________________________________
> Food fight? Enjoy some healthy debate
> in the Yahoo! Answers Food & Drink Q&A.
> http://answers.yahoo.com/dir/?link=list&sid=396545367
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070307180929.GA15492>
