> It would be great if there were a sample of jsvc command for tomcat6 > smth. like. > I suggest consult it with developers, for instance Mladen Turk (mturk) > {code} > /opt/jboss-ews-2.0/sbin/jsvc > -cp /opt/jboss-ews-2.0/share/tomcat6/bin/bootstrap.jar > -outfile /opt/jboss-ews-2.0/share/tomcat6/logs/catalina.out > -errfile /opt/jboss-ews-2.0/share/tomcat6/logs/catalina.err > -pidfile /opt/jboss-ews-2.0/share/tomcat6/tomcat6.pid > -user tomcat > -Dcatalina.home=/opt/jboss-ews-2.0/share/tomcat6 > -Djava.io.tmpdir=/opt/jboss-ews-2.0/share/tomcat6/temp > -jvm server org.apache.catalina.startup.Bootstrap > {code} Origin: https://bugzilla.redhat.com/show_bug.cgi?id=850777
This RFE is proposed as useful additional information for this guide for 2.0.0++.
Hi Mladen, can you provide sample of jsvc command for tomcat as suggested by Misha?
No information on this yet. This bug is deferred for a later release due to the June-4 docs freeze date and no information as of May-31.
Chapter 10.3.1 is not correct - daemon.sh in T6.0.41 exists. 10.2.2 - --jvm this param does not exists. there is --service-start-wait-time 10.1 about Jsvc - jsvc is mainly for running Tomcat as background job. This should be more specified by Mladen or JFC.
comm#12 not fixed
HTTP Connectors Load Balancing Guide: ====================================== 10.3.1 - daemon.sh exists in tomcat6/bin but there is no jsvc binary in tomcat6/bin. Are there any reason why we don't have jsvc binary in tomcat6/bin Jean-Frederic, Mladen or David? We have it in tomcat7/bin. 10.2.2 - --jvm this param does not exists. there is --service-start-wait-time 10.1 about Jsvc - jsvc is mainly for running Tomcat as background job.
We have Tomcat6 jsvc documented and for Tomcat7 we have documented using daemon.sh. This bug depeneds on BZ 1115525 - jsvc in different directories First of all we need to unified storing and using jsvc binary across tomcat versions and ews platforms.
jsvc RHEL locations: jboss-ews-2.1/extras/jsvc jboss-ews-2.1/tomcat6/bin/jsvc jboss-ews-2.1/tomcat7/bin/jsvc Please note the 'jsvc' in tomcat6 and tomcat7 folders are symlinks to 'extra/jsvc'. And it's linked like this: ./jboss-ews-2.1/tomcat6/bin/jsvc -> ../../extras/jsvc ./jboss-ews-2.1/tomcat7/bin/jsvc -> ../../extras/jsvc --- jsvc Solaris locations: ./jboss-ews-2.1/sbin/jsvc ./jboss-ews-2.1/share/apache-tomcat-6.0.41/bin/jsvc ./jboss-ews-2.1/share/apache-tomcat-7.0.54/bin/jsvc Please note the 'jsvc' in apache-tomcat-6.0.41 and apache-tomcat-7.0.54 are symlinks to 'sbin/jsvc'. And it's linked like this: ./jboss-ews-2.1/share/apache-tomcat-7.0.54/bin/jsvc -> ../../../sbin/jsvc ./jboss-ews-2.1/share/apache-tomcat-6.0.41/bin/jsvc -> ../../../sbin/jsvc
(In reply to Libor Fuka from comment #19) > HTTP Connectors Load Balancing Guide: > ====================================== > 10.3.1 - daemon.sh exists in tomcat6/bin but there is no jsvc binary in > tomcat6/bin. > Are there any reason why we don't have jsvc binary in tomcat6/bin > Jean-Frederic, Mladen or David? We have it in tomcat7/bin. > > 10.2.2 - --jvm this param does not exists. there is --service-start-wait-time > > 10.1 about Jsvc - jsvc is mainly for running Tomcat as background job. I can find these options in daemon.sh: case "$1" in --java-home ) JAVA_HOME="$2" shift; shift; continue ;; --catalina-home ) CATALINA_HOME="$2" shift; shift; continue ;; --catalina-base ) CATALINA_BASE="$2" shift; shift; continue ;; --catalina-pid ) CATALINA_PID="$2" shift; shift; continue ;; --tomcat-user ) TOMCAT_USER="$2" shift; shift; continue ;; --service-start-wait-time ) SERVICE_START_WAIT_TIME="$2" shift; shift; continue ;; * ) break ;; esac the '--service-start-wait-time' is a wrapper for '-wait' option in jsvc: # Set the default service-start wait time if necessary test ".$SERVICE_START_WAIT_TIME" = . && SERVICE_START_WAIT_TIME=10 ... case "$1" in run ) shift "$JSVC" $* \ $JSVC_OPTS \ -java-home "$JAVA_HOME" \ -pidfile "$CATALINA_PID" \ -wait "$SERVICE_START_WAIT_TIME" \ ... I've found the jsvc doc here and it contains the meaning of '-wait' option: http://commons.apache.org/proper/commons-daemon/jsvc.html -wait <waittime> wait waittime seconds for the service to start waittime should multiple of 10 (min=10)
Use Jsvc with Tomcat 6 - Its the same like for Tomcat7...you can write only 11.2.2. Configure Jsvc with Tomcat 6 and 7.....and delete chapter 11.3.1
VERIFIED #23, #25
Now available on the customer portal: https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Web_Server/2.1/