Date: Thu, 8 Mar 2007 04:20:40 -0800 (PST) From: Drew Jenkins <drewjenkinsjr@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: Setting Env Message-ID: <263543.26969.qm@web62205.mail.re1.yahoo.com>
next in thread | raw e-mail | index | archive | help
20I wrote the following script (with your help) to solve the problem I'm ha= ving with setting the MySQL environment and getting Zope up after the fact.= I have saved this in /usr/local/etc/rc.d/ If I run this after the machine = reboots, all is well. If I simply let it run in the reboot sequence, it doe= sn't do it's job! The sleep command is to give the server a chance to finis= h all its other bootup sequences, since that appears to be the factor messi= ng things up. But it doesn't work!! What can I do to tweak this to do what = I need it to do?=0ATIA,=0ADrew=0A=0A#!/bin/sh=0A=0Asleep 60=0Aif [ -n "$LD_= LIBRARY_PATH" ] ; then=0A export LD_LIBRARY_PATH=3D"${LD_LIBRARY_PATH}:/= usr/local/lib/mysql"=0Aelse=0A export LD_LIBRARY_PATH=3D"/usr/local/lib/= mysql"=0Afi=0A=0Acd /usr/local/zope/=0A./instance1/bin/zopectl stop=0A./ins= tance1/bin/zopectl start=0A./instance2/bin/zopectl stop=0A./instance2/bin/z= opectl start=0A=0A=0A=0A=0A=0A =0A_________________________________________= ___________________________________________=0AFood fight? Enjoy some health= y debate =0Ain the Yahoo! Answers Food & Drink Q&A.=0Ahttp://answers.yahoo.= com/dir/?link=3Dlist&sid=3D396545367
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?263543.26969.qm>