Using Tomcat Toolkit in a HP Serviceguard Cluster README Revision: B.06.00
RETRY_TIMES (For example: RETRY_TIMES=2)
This variable holds the number of times to attempt to check the
'tomcat' daemon processes before giving up and exiting to fail state.
If not defined, its default value will be 2.
For the alert mail notification feature, an additional parameter called
ALERT_MAIL_ID is introduced in the ADF.
ALERT_MAIL ID: Sends an email message to the specified email address
when
packages fail.This email is generated only when packages
fail,
and not when a package is halted by the operator.
To send this email message to multiple recipients, a group
email ID must be created and specified for this parameter.
When an email ID is not specified for this parameter, the
script does not send out this email.
The following information provides the steps for configuring the
toolkit and running the package. This includes configuring the Tomcat
toolkit user configuration file.
Note: Before working on the toolkit configuration, the package
directory (example, /etc/cmcluster/pkg/tomcat_pkg1) must be
created and all toolkit scripts copied to the package directory.
1. Edit the Tomcat Toolkit user configuration file.
In the package directory, edit the user configuration file
(hatomcat.conf) as indicated by the comments in that file.
For example:
CATALINA_HOME="/opt/hpws22/tomcat"
CATALINA_BASE="/shared/tomcat_1"
MAINTENANCE_FLAG="yes"
MONITOR_PORT=8081
2. Distribute all package files in the package directory to the other
package nodes. All nodes should have an identical file path for
these files. For this example, each package node must have
the following files in the package directory:
tomcat_pkg.conf #Package configuration file
tomcat_pkg.cntl #Package control file
hatomcat.conf #Tomcat toolkit user configuration file
hatomcat.mon #Tomcat toolkit monitor program
hatomcat.sh #Tomcat toolkit main script
toolkit.sh #Interface file between the package
#control file and the toolkit