From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 18:12:24 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E652D16A403 for ; Wed, 7 Mar 2007 18:12:24 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 9E11513C48D for ; Wed, 7 Mar 2007 18:12:24 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l27I9T1H015513; Wed, 7 Mar 2007 13:09:29 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l27I9TUP015512; Wed, 7 Mar 2007 13:09:29 -0500 (EST) (envelope-from jerrymc) Date: Wed, 7 Mar 2007 13:09:29 -0500 From: Jerry McAllister To: Drew Jenkins Message-ID: <20070307180929.GA15492@gizmo.acns.msu.edu> References: <141754.45363.qm@web62204.mail.re1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <141754.45363.qm@web62204.mail.re1.yahoo.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Setting Env X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2007 18:12:25 -0000 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" >