From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 04:52:04 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 1386F16A402 for ; Fri, 9 Mar 2007 04:52:04 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id E46C913C4A6 for ; Fri, 9 Mar 2007 04:52:03 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l294q3Jt001286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 8 Mar 2007 20:52:03 -0800 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l294q2ee002466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 8 Mar 2007 20:52:02 -0800 Message-ID: <45F0E7EC.1040309@u.washington.edu> Date: Thu, 08 Mar 2007 20:51:56 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.8.203934 X-Uwash-Spam: Gauge=IIIIIIII, Probability=8%, Report='LEO_OBFU_SUBJ_RE 0.1, SUPERLONG_LINE 0.05, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' 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: Fri, 09 Mar 2007 04:52:04 -0000 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 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