'\" t .\" Title: ocf_heartbeat_tomcat .\" Author: Linux-HA contributors (see the resource agent source for information about individual authors) .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 02/03/2011 .\" Manual: OCF resource agents .\" Source: resource-agents 1.0.3 .\" Language: English .\" .TH "OCF_HEARTBEAT_TOMCAT" "7" "02/03/2011" "resource-agents 1.0.3" "OCF resource agents" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ocf_heartbeat_tomcat \- Manages a Tomcat servlet environment instance .SH "SYNOPSIS" .HP \w'\fBtomcat\fR\ 'u \fBtomcat\fR [start | stop | status | monitor | meta\-data | validate\-all] .SH "DESCRIPTION" .PP Resource script for tomcat\&. It manages a Tomcat instance as an HA resource\&. .SH "SUPPORTED PARAMETERS" .PP \fBtomcat_name\fR .RS 4 The name of the resource (optional, string, no default) .RE .PP \fBscript_log\fR .RS 4 A destination of the log of this script (optional, string, no default) .RE .PP \fBtomcat_stop_timeout\fR .RS 4 Time\-out at the time of the stop (optional, integer, no default) .RE .PP \fBtomcat_suspend_trialcount\fR .RS 4 The re\-try number of times awaiting a stop (optional, integer, no default) .RE .PP \fBtomcat_user\fR .RS 4 A user name to start a resource (optional, string, no default) .RE .PP \fBstatusurl\fR .RS 4 URL for state confirmation (optional, string, no default) .RE .PP \fBjava_home\fR .RS 4 Home directory of the Java (required, string, no default) .RE .PP \fBcatalina_home\fR .RS 4 Home directory of Tomcat (required, string, no default) .RE .PP \fBcatalina_pid\fR .RS 4 A PID file name of Tomcat (optional, string, no default) .RE .PP \fBtomcat_start_opts\fR .RS 4 Tomcat start options (optional, string, no default) .RE .PP \fBcatalina_opts\fR .RS 4 Catalina options (optional, string, no default) .RE .PP \fBcatalina_rotate_log\fR .RS 4 Rotate catalina\&.out flag (optional, string, no default) .RE .PP \fBcatalina_rotatetime\fR .RS 4 Time span of the rotate catalina\&.out (optional, integer, no default) .RE .SH "SUPPORTED ACTIONS" .PP This resource agent supports the following actions (operations): .PP \fBstart\fR .RS 4 Starts the resource\&. Suggested minimum timeout: 60s\&. .RE .PP \fBstop\fR .RS 4 Stops the resource\&. Suggested minimum timeout: 120s\&. .RE .PP \fBstatus\fR .RS 4 Performs a status check\&. Suggested minimum timeout: 60\&. .RE .PP \fBmonitor\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 30s\&. Suggested interval: 10s\&. .RE .PP \fBmeta\-data\fR .RS 4 Retrieves resource agent metadata (internal use only)\&. Suggested minimum timeout: 5s\&. .RE .PP \fBvalidate\-all\fR .RS 4 Performs a validation of the resource configuration\&. Suggested minimum timeout: 5\&. .RE .SH "EXAMPLE" .PP The following is an example configuration for a tomcat resource using the \fBcrm\fR(8) shell: .sp .if n \{\ .RS 4 .\} .nf primitive example_tomcat ocf:heartbeat:tomcat \e params \e java_home=\fIstring\fR \e catalina_home=\fIstring\fR \e op monitor depth="0" timeout="30s" interval="10s" .fi .if n \{\ .RE .\} .SH "SEE ALSO" .PP \m[blue]\fB\%http://www.linux-ha.org/wiki/tomcat_(resource_agent)\fR\m[] .SH "AUTHOR" .PP \fBLinux\-HA contributors (see the resource agent source for information about individual authors)\fR