'\" t .\" Title: ocf_heartbeat_jboss .\" 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_JBOSS" "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_jboss \- Manages a JBoss application server instance .SH "SYNOPSIS" .HP \w'\fBjboss\fR\ 'u \fBjboss\fR [start | stop | status | monitor | meta\-data | validate\-all] .SH "DESCRIPTION" .PP Resource script for Jboss\&. It manages a Jboss instance as an HA resource\&. .SH "SUPPORTED PARAMETERS" .PP \fBresource_name\fR .RS 4 The name of the resource\&. Defaults to the name of the resource instance\&. (unique, optional, string, default default) .RE .PP \fBconsole\fR .RS 4 A destination of the log of jboss run and shutdown script\&. (unique, optional, string, no default) .RE .PP \fBshutdown_timeout\fR .RS 4 Timeout for jboss bin/shutdown\&.sh\&. We wait for this timeout to expire, then send the TERM and QUIT signals\&. Finally, the KILL signal is used to terminate the jboss process\&. You should set the timeout for the stop operation to a value bigger than the sum of the timeout parameters\&. See also kill_timeout\&. (optional, integer, default 5) .RE .PP \fBkill_timeout\fR .RS 4 If bin/shutdown\&.sh doesn\*(Aqt stop the jboss process, then we send it TERM and QUIT signals, intermittently and once a second\&. After this timeout expires, if the process is still live, we use the KILL signal\&. See also shutdown_timeout\&. (optional, integer, default 10) .RE .PP \fBuser\fR .RS 4 A user name to start a JBoss\&. (optional, string, default root) .RE .PP \fBstatusurl\fR .RS 4 URL to test in the monitor operation\&. (optional, string, default http://127\&.0\&.0\&.1:8080) .RE .PP \fBjava_home\fR .RS 4 Home directory of Java\&. Defaults to the environment variable JAVA_HOME\&. If it is not set, then define this parameter\&. (optional, string, no default) .RE .PP \fBjboss_home\fR .RS 4 Home directory of Jboss\&. (unique, required, string, no default) .RE .PP \fBpstring\fR .RS 4 With this string heartbeat matches for the right process to kill\&. (optional, string, default java \-Dprogram\&.name=run\&.sh) .RE .PP \fBrun_opts\fR .RS 4 Start options to start Jboss with, defaults are from the Jboss\-Doku\&. (optional, string, default \-c default \-l lpg4j) .RE .PP \fBshutdown_opts\fR .RS 4 Stop options to stop Jboss with\&. (optional, string, default \-s 127\&.0\&.0\&.1:1099) .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: 30s\&. .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 jboss resource using the \fBcrm\fR(8) shell: .sp .if n \{\ .RS 4 .\} .nf primitive p_jboss ocf:heartbeat:jboss \e params \e jboss_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/jboss_(resource_agent)\fR\m[] .SH "AUTHOR" .PP \fBLinux\-HA contributors (see the resource agent source for information about individual authors)\fR