Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

In order to Run Tomcat as a linux service, you should follow these steps:

Install the wrapper service

Create a tomcat environment definition script

Create a tomcat launcher script

Configure the wrapper service to run tomcat

Link the tomcat launcher script to the init scripts directory

Link the tomcat init script to the revelant init levels

Install the wrapper service

Download the wrapper service binaries for Linux (http://wrapper.tanukisoftware.org)

Copy the binaries as defined in (http://wrapper.tanukisoftware.org/doc/english/integrate-simple-nix.html):

copy the wrapper file in $(tomcat.home)/bin,

copy the sh.script.in file in $(tomcat.home)/bin and rename it to tomcat.

Edit the newly renamed tomcat file to ensure the following lines are defined.

APP_NAME="tomcat"
APP_LONG_NAME="Tomcat Application Server"

Create the tomcat environment definition script

Create the $(server.home)/tomcat.env file with the content (dont forget to replace the $(xxx) variables with your defined values)

CATALINA_HOME=$(tomcat.home)
CATALINA_BASE=$

Unknown macro: {server.tomcat.home}

export CATALINA_HOME CATALINA_BASE

JAVA_HOME=$(java.home)

export JAVA_HOME

M2_HOME=$(m2.home)

export M2_HOME

PATH=$M2_HOME/bin:$CATALINA_HOME/bin:$JAVA_HOME/bin:$PATH

export PATH

  • No labels