'\" t .\" Title: ocf_heartbeat_tomcat .\" Author: Linux-HA contributors (see the resource agent source for information about individual authors) .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 03/09/2014 .\" Manual: OCF resource agents .\" Source: resource-agents UNKNOWN .\" Language: English .\" .TH "OCF_HEARTBEAT_TOMCAT" "7" "03/09/2014" "resource-agents UNKNOWN" "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 a cluster resource\&. .SH "SUPPORTED PARAMETERS" .PP \fBtomcat_name\fR .RS 4 The name of the resource, added as a Java parameter in JAVA_OPTS: \-Dname= to Tomcat process on start\&. Used to ensure process is still running and must be unique\&. (unique, optional, string, no default) .RE .PP \fBscript_log\fR .RS 4 Log file, used during start and stop operations\&. (unique, optional, string, no default) .RE .PP \fBtomcat_stop_timeout\fR .RS 4 Time\-out for stop operation\&. DEPRECATED (optional, integer, no default) .RE .PP \fBtomcat_suspend_trialcount\fR .RS 4 Maximum number of times to retry stop operation before suspending and killing Tomcat\&. DEPRECATED\&. Does not retry\&. (optional, integer, no default) .RE .PP \fBtomcat_user\fR .RS 4 The user who starts Tomcat\&. (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 Java\&. (required, string, no default) .RE .PP \fBjava_opts\fR .RS 4 Java JVM options used on start and stop\&. (optional, string, no default) .RE .PP \fBcatalina_home\fR .RS 4 Home directory of Tomcat\&. (unique, required, string, no default) .RE .PP \fBcatalina_base\fR .RS 4 Instance directory of Tomcat (unique, optional, string, no default) .RE .PP \fBcatalina_pid\fR .RS 4 A PID file name for Tomcat\&. (unique, 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, for the start operation only\&. (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 catalina\&.out rotation interval (seconds)\&. (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 p_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