commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r169617 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/Tomcat5.sh
Date Wed, 11 May 2005 10:31:30 GMT
Author: jfclere
Date: Wed May 11 03:31:27 2005
New Revision: 169617

URL: http://svn.apache.org/viewcvs?rev=169617&view=rev
Log:
Add pidfile and catalina.base to fix 33581.

Modified:
    jakarta/commons/proper/daemon/trunk/src/native/unix/native/Tomcat5.sh

Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/Tomcat5.sh
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/Tomcat5.sh?rev=169617&r1=169616&r2=169617&view=diff
==============================================================================
--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/Tomcat5.sh (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/Tomcat5.sh Wed May 11 03:31:27
2005
@@ -33,7 +33,11 @@
 CATALINA_HOME=/home/tomcat5/tomcat5/jakarta-tomcat-5/build
 DAEMON_HOME=/home/jfclere/daemon
 TOMCAT_USER=tomcat5
+
+# for multi instances adapt those lines.
 TMP_DIR=/var/tmp
+PID_FILE=/var/run/jsvc.pid
+CATALINA_BASE=/home/tomcat5/tomcat5/jakarta-tomcat-5/build
 
 CATALINA_OPTS="-Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs"
 CLASSPATH=\
@@ -50,8 +54,10 @@
     -user $TOMCAT_USER \
     -home $JAVA_HOME \
     -Dcatalina.home=$CATALINA_HOME \
+    -Dcatalina.base=$CATALINA_BASE \
     -Djava.io.tmpdir=$TMP_DIR \
     -wait 10 \
+    -pidfile $PID_FILE \
     -outfile $CATALINA_HOME/logs/catalina.out \
     -errfile '&1' \
     $CATALINA_OPTS \
@@ -71,6 +77,7 @@
     #
     $DAEMON_HOME/src/native/unix/jsvc \
     -stop \
+    -pidfile $PID_FILE \
     org.apache.catalina.startup.Bootstrap
     exit $?
     ;;



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message