Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SectionTomcatConfluence
Run Tomcat with a Specific Java Version Using setenv.shopt/apache/tomcat.1/bin/setenv.sh/opt/confluence/bin/setenv.sh
 opt/apache/tomcat.1/bin/version.sh/opt/confluence/bin/bin/version.sh

Your resulting Confluence setenv.sh file will look like this,

Code Block
languagebash
# See the CATALINA_OPTS below for tuning the JVM arguments used to start Confluence.

# Bonsaiframework - Modification Start
# --------------------------------------
JRE_HOME="$CATALINA_HOME"/java
JAVA_HOME="$CATALINA_HOME"/java
# --------------------------------------
# Bonsaiframework - Modification End

echo "If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide"
# set the location of the pid file
if [ -z "$CATALINA_PID" ] ; then
    if [ -n "$CATALINA_BASE" ] ; then
        CATALINA_PID="$CATALINA_BASE"/work/catalina.pid
    elif [ -n "$CATALINA_HOME" ] ; then
        CATALINA_PID="$CATALINA_HOME"/work/catalina.pid
    fi
fi
export CATALINA_PID

 

Configure Confluence to Only Start and Stop with ServerAdmin

...