HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
Table 24 Files for creating modular packages
Available in directoryDescriptionFile name
$SGCONF/modules/tkit/tomcatThis is an attribute definition file, used
to generate a package ASCII template
in modular style of packaging.
tomcat.1
$SGCONF/scripts/tkit/tomcatThis is the module script. This script is
called by the master control script and
tkit_module.sh
acts as an interface between the
tkit_module.sh master control
script and the toolkit interface script
(toolkit.sh). It is also responsible
for calling the toolkit configuration file
generator script.
NOTE: This file is used only for
creating modular packages.
$SGROOT/scripts/tkit/tomcatThis is the toolkit configuration file
generator script. This script is called
tkit_gen.sh
by the module script when the
package configuration is applied
using cmapplyconf to generate the
user configuration file in the package
directory, TKIT_DIR.
NOTE: This file is used only for
creating modular packages.
Setting up the Tomcat server in SG/LX environment
Before creating and configuring Serviceguard packages, you must complete the following steps:
1. Disable the automatic start of the standard Tomcat default installation if Tomcat is run from
Serviceguard so that nothing is running on the server at the system startup time. When the
Tomcat server is installed, the default instance may be automatically configured to be started
during system startup via the runlevel (rc) script in the /etc/rc.d directory.
2. Modify the port attribute present in the connector component. It must be unique for each Tomcat
instance. Connector component is defined as an element in the Tomcat server configuration
server.xml file.
3. Create a separate, distinct CATALINA_BASE directory for each Tomcat Serviceguard package.
4. Configure all Tomcat instances to listen to package re-locatable IP addresses.
For information on configuring virtual hosts, see Tomcat Server documentation.
NOTE: For a local configuration, you must install and configure Tomcat in the same location
on the primary and all backup nodes and set up the identical (or equivalent) configuration
files in the same server root directory on all nodes. Also, all web application directories must
exist on all nodes and should contain identical files.
For a shared configuration, you need to configure the web application directories on shared
file system. One or more shared file systems may be used. Ensure that all required components
which are on shared storage are available at the same time. It is not required to place the
CATALINA_BASE directory on a shared file system to use the shared storage.
You may choose a local CATALINA_BASE directory for configuration files and place only the
web application directories on a shared file system. However, you must configure identical
CATALINA_BASE directories and identical configuration files on all nodes.
Supported Configuration
This section explains the following supported configurations for Tomcat toolkit packages:
54 Tomcat Toolkit