Hi,We are unable to log to separately configured log files in Tomcat 7.x under 
specific startup script/condition (webapp2 is configured correctly to log to 
$CATALINA_BASE/logs/testing2-catalina.out):Restarted tomcat container by this 
command: bin/startup.shLogs from webapp2 logs (i.e testing2) are being logged 
to default log file (catalina.out) which is undesired.Note: Restarting tomcat 
container by this command: ./catalina.sh start > debugStart.out, webapp2 logs 
are logged correctly to testing2-catalina.out file.
$CATALINA_BASE/bin/startup.sh:PRG="$0"

while [ -h "$PRG" ] ; do
 ls=`ls -ld "$PRG"`
 link=`expr "$ls" : '.*-> \(.*\)$'`
 if expr "$link" : '/.*' > /dev/null; then
 PRG="$link"
 else
 PRG=`dirname "$PRG"`/"$link"
 fi
donePRGDIR=`dirname "$PRG"`exec "$PRGDIR"/"$EXECUTABLE" start "$@"afaik this is 
executing "exec bin/catalina.sh start" with no params.  Any idea why the 
behavior difference then in terms of logging?  Need to know because "systemctl 
status tomcat" shows starting as follows: 
ExecStart=/opt/tomcat-prod/bin/startup.sh (code=exited, status=0/SUCCESS)
and we can't change the way the service is configured.  Thanks.

Arbi Sookazian | Sr Software Engineer | Medata, Inc.
5 Peters Canyon Road, Suite 250
Irvine, CA 92606
asookaz...@medata.com | www.medata.com

Reply via email to