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 13 Next »

Introduction

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

  1. #Install the wrapper service
  2. #Create a tomcat environment definition script
  3. #Create a tomcat launcher script
  4. #Configure the wrapper service to run tomcat
  5. #Link the tomcat launcher script to the init scripts directory
  6. #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.

Create a tomcat environment definition script

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

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

  • No labels