Using Tomcat Toolkit in a HP Serviceguard Cluster README Revision: B.06.00
SERVICE_NAME[1]="http_pkg1.monitor"
SERVICE_CMD[1]="/etc/cmcluster/pkg/http_pkg1/toolkit.sh monitor"
SERVICE_RESTART[1]=""
Edit the customer_defined_run and customer_defined_halt function
as shown below:-
function customer_defined_run_cmds
{
# ADD customer defined run commands.
/etc/cmcluster/pkg/tomcat_pkg1/toolkit.sh start
/etc/cmcluster/pkg/http_pkg1/toolkit.sh start
test_return 51
}
function customer_defined_halt_cmds
{
# ADD customer defined run commands.
/etc/cmcluster/pkg/tomcat_pkg1/toolkit.sh stop
/etc/cmcluster/pkg/http_pkg1/toolkit.sh stop
test_return 51
}
Please refer to the previous sections, "Managing Serviceguard"
manual and Apache README for more details.
Note: While bringing down Apache or Tomcat application for
maintenance, touch the files tomcat.debug and apache.debug in
Tomcat and Apache package directories
/etc/cmcluster/pkg/tomcat_pkg1/ and
/etc/cmcluster/pkg/http_pkg1/ respectively. This will ensure
that monitoring services of both Apache and Tomcat is paused
during the maintenance period.
Note: In the above both Tomcat and Apache applications are configured
in a single package. For troubleshooting and debugging, the
user needs to look at Serviceguard package logs in the
directory where the package control file resides. For
application related logs the user needs to look for error and
logs directory in $SERVER_ROOT and $CATALINA_BASE for Apache
and Tomcat applications respectively
© Copyright 2010 Hewlett-Packard Development Company, L.P. Confidential
computer software.Valid license from HP required for possession, use, or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer
Software, Computer Software Documentation, and Technical Data
forCommercial Items are licensed to the U.S. Government under vendor's
standard commercial license. The information contained herein is subject
to change without notice. The only warranties for HP products and
services are set forth in the express warranty statements accompanying
such products and services. Nothing herein should be construed as