Name

ocf:jboss — Manages a JBoss application server instance

Synopsis

OCF_RESKEY_resource_name=string OCF_RESKEY_console=string [OCF_RESKEY_shutdown_timeout=integer] [OCF_RESKEY_kill_timeout=integer] [OCF_RESKEY_user=string] [OCF_RESKEY_statusurl=string] [OCF_RESKEY_java_home=string] OCF_RESKEY_jboss_home=string [OCF_RESKEY_pstring=string] [OCF_RESKEY_run_opts=string] [OCF_RESKEY_shutdown_opts=string] jboss [start | stop | status | monitor | meta-data | validate-all]

Description

Resource script for Jboss. It manages a Jboss instance as an HA resource.

Supported Parameters

OCF_RESKEY_resource_name=The name of the resource

The name of the resource. Defaults to the name of the resource instance.

OCF_RESKEY_console=jboss log path

A destination of the log of jboss run and shutdown script.

OCF_RESKEY_shutdown_timeout=shutdown timeout

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.

OCF_RESKEY_kill_timeout=stop by signal timeout

If bin/shutdown.sh doesn't 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.

OCF_RESKEY_user=A user name to start a resource.

A user name to start a JBoss.

OCF_RESKEY_statusurl=URL to test in the monitor operation.

URL to test in the monitor operation.

OCF_RESKEY_java_home=Home directory of Java.

Home directory of Java. Defaults to the environment variable JAVA_HOME. If it is not set, then define this parameter.

OCF_RESKEY_jboss_home=Home directory of Jboss.

Home directory of Jboss.

OCF_RESKEY_pstring=pkill/pgrep search string

With this string heartbeat matches for the right process to kill.

OCF_RESKEY_run_opts=options for jboss run.sh

Start options to start Jboss with, defaults are from the Jboss-Doku.

OCF_RESKEY_shutdown_opts=options for jboss shutdown.sh

Stop options to stop Jboss with.