https://bz.apache.org/bugzilla/show_bug.cgi?id=58198

            Bug ID: 58198
           Summary: CATALINA_OPTS is missing in stop command
           Product: Tomcat 8
           Version: 8.0.24
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Packaging
          Assignee: dev@tomcat.apache.org
          Reporter: cronier...@gmail.com

To facilitate Tomcat administration with multiple instances, I pass the
'controlPort' with variable substitution in server.xml with value in
CATALINA_OPTS

For example in server.xml:
  <Connector port="${connector.port}"

And I launch with:
  CATALINA_OPTS=-Dconnector.port=8181

The Tomcat launching is sucessful, but not the Tomcat stoping because
substitution variable isn't done.

To successfully stopping Tomcat, I have to fix issue in catalina.sh (and
catalina.bat)

I have replaced the following:

  eval "\"$_RUNJAVA\"" $LOGGING_MANAGER $JAVA_OPTS \
    -Djava.endorsed.dirs="\"$JAVA_ENDORSED_DIRS\"" -classpath "\"$CLASSPATH\""
\
    -Dcatalina.base="\"$CATALINA_BASE\"" \
    -Dcatalina.home="\"$CATALINA_HOME\"" \
    -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
    org.apache.catalina.startup.Bootstrap "$@" stop

By:

  eval "\"$_RUNJAVA\"" $LOGGING_MANAGER $JAVA_OPTS \
    -Djava.endorsed.dirs="\"$JAVA_ENDORSED_DIRS\"" -classpath "\"$CLASSPATH\""
\
    -Dcatalina.base="\"$CATALINA_BASE\"" \
    -Dcatalina.home="\"$CATALINA_HOME\"" \
    -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
    ${CATALINA_OPTS} \
    org.apache.catalina.startup.Bootstrap "$@" stop

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to