1OCF_HEARTBEAT_JBOSS(7) OCF resource agents OCF_HEARTBEAT_JBOSS(7)
2
3
4
6 ocf_heartbeat_jboss - Manages a JBoss application server instance
7
9 jboss [start | stop | status | monitor | meta-data | validate-all]
10
12 Resource script for Jboss. It manages a Jboss instance as an HA
13 resource.
14
16 resource_name
17 The name of the resource. Defaults to the name of the resource
18 instance. (unique, optional, string, default default)
19
20 console
21 A destination of the log of jboss run and shutdown script.
22 (unique, optional, string, no default)
23
24 shutdown_timeout
25 Timeout for jboss bin/shutdown.sh. We wait for this timeout to
26 expire, then send the TERM and QUIT signals. Finally, the KILL
27 signal is used to terminate the jboss process. You should set the
28 timeout for the stop operation to a value bigger than the sum of
29 the timeout parameters. See also kill_timeout. (optional, integer,
30 default 5)
31
32 kill_timeout
33 If bin/shutdown.sh doesn't stop the jboss process, then we send it
34 TERM and QUIT signals, intermittently and once a second. After this
35 timeout expires, if the process is still live, we use the KILL
36 signal. See also shutdown_timeout. (optional, integer, default 10)
37
38 user
39 A user name to start a JBoss. (optional, string, default root)
40
41 statusurl
42 URL to test in the monitor operation. (optional, string, default
43 http://127.0.0.1:8080)
44
45 java_home
46 Home directory of Java. Defaults to the environment variable
47 JAVA_HOME. If it is not set, then define this parameter.
48 (optional, string, no default)
49
50 jboss_home
51 Home directory of Jboss. (unique, required, string, no default)
52
53 pstring
54 With this string heartbeat matches for the right process to kill.
55 (optional, string, default java -Dprogram.name=run.sh)
56
57 run_opts
58 Start options to start Jboss with, defaults are from the
59 Jboss-Doku. (optional, string, default -c default -l lpg4j)
60
61 shutdown_opts
62 Stop options to stop Jboss with. (optional, string, default -s
63 127.0.0.1:1099)
64
66 This resource agent supports the following actions (operations):
67
68 start
69 Starts the resource. Suggested minimum timeout: 60s.
70
71 stop
72 Stops the resource. Suggested minimum timeout: 120s.
73
74 status
75 Performs a status check. Suggested minimum timeout: 30s.
76
77 monitor
78 Performs a detailed status check. Suggested minimum timeout: 30s.
79 Suggested interval: 10s.
80
81 meta-data
82 Retrieves resource agent metadata (internal use only). Suggested
83 minimum timeout: 5s.
84
85 validate-all
86 Performs a validation of the resource configuration. Suggested
87 minimum timeout: 5.
88
90 The following is an example configuration for a jboss resource using
91 the crm(8) shell:
92
93 primitive p_jboss ocf:heartbeat:jboss \
94 params \
95 jboss_home=string \
96 op monitor depth="0" timeout="30s" interval="10s"
97
99 http://www.linux-ha.org/wiki/jboss_(resource_agent)
100
102 Linux-HA contributors (see the resource agent source for information
103 about individual authors)
104
105
106
107resource-agents 3.9.2 07/08/2011 OCF_HEARTBEAT_JBOSS(7)