Hi,

I'm using Resin 3.0.19 on a Mac 10.5.6.  When I run my startup script, all
my output is sent to the terminal window where it used to go to a stdout
file.  This happened when I changed my resin configuration to run in a
cluster, but the startup script changed very little.  I have included it
below.  Please let me know if you know of additional steps to troubleshoot.

Thanks, - Dave

===========Begin startup script ===================
#!/bin/ksh

umask 006

export
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/
export RESIN_HOME=/opt/resin/current
export ORACLE_HOME=/opt/oracle
#export ORACLE_HOME=/opt/oracle/instantclient
export DYLD_LIBRARY_PATH=$ORACLE_HOME:$DYLD_LIBRARY_PATH

DATE_TIME=`date +%Y-%m-%d-%H.%M.%S`
LOGS_DIRECTORY=/opt/var/logs/resin/dev-resin

if [[ ! -d $LOGS_DIRECTORY ]]; then
  mkdir -p $LOGS_DIRECTORY
else
  rm -f $LOGS_DIRECTORY/jvm
  rm -f $LOGS_DIRECTORY/stderr
  rm -f $LOGS_DIRECTORY/stdout
fi

$RESIN_HOME/bin/httpd.sh \
  -Djava.awt.headless=true \
  -J-d64 \
  -Xms256m \
  -Xmx512m \
  -XX:PermSize=256m \
  -XX:MaxPermSize=512m \
  -server-root /opt/containers/resin/dev-resin \
  -server dev-resin-1 \
  -conf /opt/containers/resin/dev-resin/conf/resin.conf \
  -J-Djava.library.path=$ORACLE_HOME \
  -stderr $LOGS_DIRECTORY/stderr-$DATE_TIME \
  -stdout $LOGS_DIRECTORY/stdout-$DATE_TIME \
  -jvm-log $LOGS_DIRECTORY/jvm-$DATE_TIME \
start 2>&1 > /dev/null

while [[ ! -e /opt/containers/resin/dev-resin/httpd.pid ]] ; do
  sleep 0.5;
done

HTTPD_PID=`cat /opt/containers/resin/dev-resin/httpd.pid`
echo "Resin [$HTTPD_PID] Started."
echo `cat /opt/containers/resin/dev-resin/httpd.pid`

ln -s $LOGS_DIRECTORY/jvm-$DATE_TIME $LOGS_DIRECTORY/jvm
ln -s $LOGS_DIRECTORY/stderr-$DATE_TIME $LOGS_DIRECTORY/stderr
ln -s $LOGS_DIRECTORY/stdout-$DATE_TIME $LOGS_DIRECTORY/stdout
============End startup script ===================

-- 
View this message in context: 
http://old.nabble.com/Why-isn%27t-startup-output-going-to-resin-stdout-file--tp27013941p27013941.html
Sent from the Resin mailing list archive at Nabble.com.



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to