DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43748>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43748 ------- Additional Comments From [EMAIL PROTECTED] 2007-12-20 11:37 ------- LENYA_HOME='.' This code works for exactly one case -- lenya.sh must be called from the Lenya directory. Startup scripts must change to the Lenya directory before calling the launch command, and may still have unexpected results if LENYA_HOME is set as an environment variable. To test, try to run Lenya from a different directory without setting LENYA_HOME: cd /x1/home/solprovider /lenya-1.2.5/lenya.sh servlet Results: INFO: No such war file lenya.war or build directory! because the build directory and lenya.war file are not found in the /x1/home/solprovider directory. > Meaning when you do not set "$LENYA_HOME" it is the same as you intend > with your commit. Not setting LENYA_HOME still requires changing the directory before calling lenya.sh. I am unaware of another program that requires changing the directory before calling the launch command. I am not the only person aware of and working on this issue. Trunk's lenya.sh includes: if [ "$LENYA_HOME" = "" ] ; then LENYA_HOME='.' # TODO: Make it startable from any directory #LENYA_HOME=`dirname $0` #echo "LENYA_HOME: $LENYA_HOME" fi Who tried using "dirname"? That code cannot fix the issue because LENYA_HOME is not set to the absolute path. Can we use this code? cd `dirname $0` LENYA_HOME=`pwd -P` Is the dirname program more generically available than the percent sign syntax for string manipulation? For the record, the rest of my original commit added a "stop" command line option and automatically shut down the Lenya instance from this directory before launching a new instance. Lenya 2.0 should benefit from that code. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
