Author: kkolinko
Date: Mon Mar 25 06:31:57 2013
New Revision: 1460528

URL: http://svn.apache.org/r1460528
Log:
Merged revision 1460342 from tomcat/trunk:
Change sample jsvc run command to
a) explicitly use CATALINA_HOME and CATALINA_BASE variables,
as it is more guaranteed to work (as suggested by a comment via comments.a.o),
and as it is needed for logging configuration.
b) include proper configuration for logging

Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/webapps/docs/setup.xml

Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
  Merged /tomcat/trunk:r1460342

Modified: tomcat/tc7.0.x/trunk/webapps/docs/setup.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/setup.xml?rev=1460528&r1=1460527&r2=1460528&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/webapps/docs/setup.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/setup.xml Mon Mar 25 06:31:57 2013
@@ -119,9 +119,16 @@
     <p>Tomcat can then be run as a daemon using the following commands.</p>
 
 <source>
+    CATALINA_BASE=$CATALINA_HOME
     cd $CATALINA_HOME
-    ./bin/jsvc -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar \
-        -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
+    ./bin/jsvc \
+        -classpath 
$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar \
+        -outfile $CATALINA_BASE/logs/catalina.out \
+        -errfile $CATALINA_BASE/logs/catalina.err \
+        -Dcatalina.home=$CATALINA_HOME \
+        -Dcatalina.base=$CATALINA_BASE \
+        -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
+        -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
\
         org.apache.catalina.startup.Bootstrap
 </source>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to