DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33581>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33581 Summary: Making jsvc multiple instances enabled Product: Commons Version: unspecified Platform: All URL: http://miti.sourceforge.net OS/Version: All Status: NEW Severity: major Priority: P2 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] This bug is closely related to 33580. The Tomcat5.sh script bundled with jsvc is not capable of handling multiple instances. According to http://miti.sourceforge.net this script should be adapted in the following ways: 1) Introduce a variable $INSTANCE_NAME which is unique 2) Introduce a variable $CATALINA_BASE_DIRS which represents a directory where all the instances will be located (e.g. /usr/local/tomcat/instances) 3) Set $CATALINA_BASE in the script (or require the shell variable to be non-zero) to $CATALINA_BASE/$INSTANCE_NAME 4) Introduce a parameter TMP_DIR=$CATALINA_BASE/$INSTANCE_NAME/temp 5) Adapt the parameter in the jsvc call: "-Djava.io.tmpdir=$TMP_DIR \" 6) Introduce a parameter PIDFILE=/var/run/jsvc-$INSTANCE_NAME.pid 7) Add a line with "-pidfile $PIDFILE \" to the parameters for the jsvc call in the start section 8) Change the stop case to stop) # # Stop Tomcat # PID=`cat $PIDFILE` if [ -n $PID ] then kill $PID rm $PIDFILE fi ;; If the installation is for a single instance, $CATALINA_BASE will be empty and therefore can be set to $CATALINA_HOME. Point 8) might even be better addressed by the jsvc executable. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]