Yes, thanks.  This is under Linux/Ubuntu 6.06, btw.

Here is the salient portion of my startup script:

newroot=/chroot
pidfile=/jsvc.pid
javahome=/usr/local/jdk1.5.0_06
export CATALINA_HOME=/usr/local/tomcat

case "$1" in
  start)
     /usr/sbin/chroot $newroot /jsvc -user tomcat -home $javahome -wait 10
-pidfile $pidfile -outfile $CATALINA_HOME/logs/catalina.out -errfile '&1' -
Dcatalina.home=$CATALINA_HOME -Dcatalina.base=$CATALINA_HOME -
Djava.io.tmpdir=$CATALINA_HOME/temp $CATALINA_OPTS -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager      -
Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -
Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed $CATALINA_OPTS
-classpath $javahome/lib/tools.jar:/usr/local/tomcat/bin/commons-
daemon.jar:/usr/local/tomcat/bin/bootstrap.j
ar:/usr/local/tomcat/bin/commons-logging-api.jar
org.apache.catalina.startup.Bootstrap
     exit $?

Something about the result of chroot'ing is not quite right, as when I
modify the invocation above to not use the chroot, output to
catalina.outappears.

Mark

On 10/18/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:

> From: Mark Petrovic [mailto:[EMAIL PROTECTED]
> Subject: Re: chroot, jsvc, and catalina.out
>
> I read through the link you provided and cannot find a reason
> why I get logging to catalina.out in one runtime scenario (that
> is, the simplest case of bin/startup.sh out of the box), but not
> in the other scenario (chrooted under jsvc).

Are these system properties being set by your startup.sh script?

-Djava.util.logging.config.file=conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

They should be by default, but check to be sure.  You can use Lambda
Probe or other monitoring tools to verify if Tomcat has them set.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Mark

Reply via email to