HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)

test_return 52
}
6. Edit the tomcat the toolkit configuration file, hatomcat.conf.
7. Copy the package directory to the other nodes in the cluster.
For example, change to the parent directory of the package directory and enter the following
command:
# rcp -r p $SGCONF/pkg/Tomcat node2:$PWD/
8. Validate the configuration using the cmcheckconf command:
# cmcheckconf -P tomcat_pkg.conf
9. Add the package to the Serviceguard environment using cmapplyconf command, if the
cmcheckconf command does not report any errors:
# cmapplyconf -P hatomcat.conf
10. Enable package switching for the Tomcat toolkit package using:
# cmmodpkg -e -n node1 -n node2 tomcat_pkg1
# cmmodpkg -e tomcat_pkg1
11. Start the package using the cmrunpkg command.
# cmrunpkg tomcat_pkg1
Configuring modular Tomcat toolkit packages
To configure modular Tomcat packages:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir $SGCONF/pkg/tomcat
2. cd to the package directory.
3. Create the package configuration and control templates using the cmmakepkg command:
# cmmakepkg -m tkit/tomcat/tomcat tomcat_pkg.conf
4. Edit the following attributes manually in the package configuration file. Table 26 (page 57)
lists all the attributes that you can edit manually in the package configuration file.
Table 26 List of attributes that you can edit
DescriptionAttribute
The Toolkit configuration directory is synonymous to
package configuration directory. This directory holds
TKIT_DIR
the toolkit configuration file. This parameter directs
cmapplyconf to generate the hatomcat.conf file
under this directory. To put the toolkit into maintenance
mode, create tomcat.debug file under this directory.
Define the Catalina Home directory. This is the directory
where Tomcat is installed.
CATALINA_HOME
NOTE: Tomcat toolkit does not support online
modification of this attribute.
Define the Catalina base directory. This is the base
directory where Tomcat configuration files like server.xml
CATALINA_BASE
reside. If this is not defined the toolkit uses
CATALINA_HOME as the base directory. This must be
unique for each tomcat instance and usually residing
on the shared disk
NOTE: Tomcat toolkit does not support online
modification of this attribute.
Using Tomcat toolkit 57