Versions Compared

Key

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

...

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

  • copy the wrapper file in the $(tomcat.home)/bin directory,
  • copy the sh.script.in file in the {{$(tomcat.home)/bin directory and rename it to tomcat,
  • copy the wrapper.jar file in the $(tomcat.home)/common/lib directory.

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

...

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

...

Create a tomcat launcher script
Anchor
Create a tomcat launcher script
Create a tomcat launcher script

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

Code Block

#! /bin/sh
su - msu -c "cd; . ~/tomcat.env; tomcat $1"

Change the permisions of that file : chmod ug+x $(server.home)/tomcat.run)

Configure the wrapper service to run tomcat
Anchor
Configure the wrapper service to run tomcat
Configure the wrapper service to run tomcat

Copy the file wrapper.conf.in from the wrapper service distribution to the $(tomcat.home)/conf directory

Ensures its content is (dont forget to expand the $(xxx) variables with your defined values)

Code Block

wrapper.java.command=%JAVA_HOME%/bin/java
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp
wrapper.java.classpath.1=$(tomcat.home)/common/lib/wrapper.jar
wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
wrapper.java.classpath.3=/$(tomcat.home)/bin/bootstrap.jar
wrapper.java.classpath.4=$(tomcat.home)/bin/commons-logging-api.jar
wrapper.java.library.path.1=$(tomcat.home)/common/lib
wrapper.java.additional.1=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
wrapper.java.additional.2=-Djava.util.logging.config.file=$(server.tomcat.base)/conf/logging.properties
wrapper.java.additional.3=-Djava.endorsed.dirs=$(tomcat.home)/common/endorsed
wrapper.java.additional.4=-Dcatalina.base=$(server.tomcat.base)
wrapper.java.additional.5=-Dcatalina.home=$(tomcat.home)
wrapper.java.additional.6=-Djava.io.tmpdir=$(server.tomcat.base)/temp
wrapper.java.additional.7=-d64
wrapper.java.additional.8=-server
wrapper.java.additional.9=-Xincgc
wrapper.java.additional.10=-Xms128m
wrapper.java.additional.11=-Xmx512m
wrapper.java.additional.12=-Xss256m
wrapper.java.additional.13=-XX:MaxPermSize=256m
wrapper.app.parameter.1=org.apache.catalina.startup.Bootstrap
wrapper.app.parameter.2=1
wrapper.app.parameter.3=start
wrapper.app.parameter.4=org.apache.catalina.startup.Bootstrap
wrapper.app.parameter.5=true
wrapper.app.parameter.6=1
wrapper.app.parameter.7=stop

wrapper.console.format=PM
wrapper.console.loglevel=INFO
wrapper.logfile=../logs/wrapper.log
wrapper.logfile.format=LPTM
wrapper.logfile.loglevel=INFO
wrapper.logfile.maxsize=0
wrapper.logfile.maxfiles=0
wrapper.syslog.loglevel=NONE
wrapper.console.title=@app.long.name@
wrapper.ntservice.name=@app.name@
wrapper.ntservice.displayname=@app.long.name@
wrapper.ntservice.description=@app.description@
wrapper.ntservice.dependency.1=
wrapper.ntservice.starttype=AUTO_START
wrapper.ntservice.interactive=false

Link the tomcat launcher script to the init scripts directory
Anchor
Link the tomcat launcher script to the init scripts directory
Link the tomcat launcher script to the init scripts directory

...