Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Mar 2007 20:51:56 -0800
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Setting Env
Message-ID:  <45F0E7EC.1040309@u.washington.edu>

next in thread | raw e-mail | index | archive | help
Well, if the problem is with Zope, then why is the env variable not set 
after reboot? The problem, therefore, is not with Zope, but rather with 
setting the variable.
Drew2

Jerry McAllister <jerrymc@msu.edu> wrote: On Thu, Mar 08, 2007 at 
01:07:10PM -0800, Drew Jenkins wrote:

> #!/bin/sh
> 
> if [ -n "$LD_LIBRARY_PATH" ] ; then
>     export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib/mysql"
>     echo "Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql because -n '$LD_LIBRARY_PATH' held true." >> /var/log/zz_mysql_start.log
> else
>     export LD_LIBRARY_PATH="/usr/local/lib/mysql"
>     echo "Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql, -n '$LD_LIBRARY_PATH' did not hold true." >> /var/log/zz_mysql_start.log
> fi
> 
> cd /usr/local/zope/
> 
> if ./instance1/bin/zopectl stop ; then
>     echo "Stopping zopectl instance 1." >> /var/log/zz_mysql_start.log
> fi
> 
> if ./instance1/bin/zopectl start ; then
>     echo "Restarting zopectl instance 1." >> /var/log/zz_mysql_start.log
> fi
> 
> if ./instance2/bin/zopectl stop ; then
>     echo "Stopping zopectl instance 2." >> /var/log/zz_mysql_start.log
> fi
> 
> if ./instance2/bin/zopectl start ; then
>     echo "Restarting zopectl instance 2." >> /var/log/zz_mysql_start.log
> fi
> 
> 
> sleep 3
> echo "ending zz_mysql_start.sh at: `date`" >> /var/log/zz_mysql_start.log
> echo " " >> /var/log/zz_mysql_start.log
> 
> Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql, -n '/usr/local/lib/mysql' did not hold true.
> Stopping zopectl instance 1.
> Restarting zopectl instance 1.
> Stopping zopectl instance 2.
> Restarting zopectl instance 2.
> ending zz_mysql_start.sh at: Thu Mar  8 14:57:47 UTC 2007
> 
> It kicked out that output when I tested it and also when I rebooted the server. However, Zope was still not up. I should qualify that. Zope "appears" to be up, but when I try to access it TTW (the ZMI) I can't reach the site.
> TIA,
> Drew    

Sounds like your problem is with Zope somewhere and not
the startup script per se - though it could be something
missing in the startup.   I have never used Zope.

////jerry

If the user has a home, why not add it to /etc/profile, or ~/.profile? 
It's only a problem if it's a daemon user without a home.. that's when 
stuff gets a bit tricky with the profile setup.

-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45F0E7EC.1040309>