OCF_HEARTBEAT_JBOSS(7)
π ocf_heartbeat_jboss β bestie edition π
okay so. welcome to the ocf_heartbeat_jboss page, from the OCF resource agents manual crew (that's section 7 of the manual, iykyk). she manages a JBoss application server instance and honestly? she's iconic for it. π«Ά
β¨ NAME β¨
ocf_heartbeat_jboss β literally just here to manage a JBoss application server instance. that's the whole job. π
β¨ SYNOPSIS β¨
jboss [start | stop | status | monitor | meta-data | validate-all]
β¨ DESCRIPTION β¨
so this is the resource script for Jboss, no cap. she manages a Jboss instance as an HA resource. that's it, that's the vibe. πΈ
β¨ SUPPORTED PARAMETERS β¨
the full menu, bestie. every single one. don't skip, they all matter π
jboss_versionβ the version of JBoss. default is5. okay so listen: the way JBoss works got completely rewritten as of JBoss 6, so if you're on JBoss 6 you gotta specify"6". fr fr.
(optional, integer, default 5)
resource_nameβ the name of the resource. defaults to the name of the resource instance, cute right?
(unique, optional, string, default "RESOURCE_ID")
consoleβ where the log of the jboss run and shutdown script goes. the receipts, basically. π
(unique, optional, string, default "/var/log/RESOURCE_ID.log")
shutdown_timeoutβ timeout for jbossbin/shutdown.sh. we wait for this timeout to expire, then we send theTERMandQUITsignals. and finally, theKILLsignal is used to terminate the jboss process. π so you should set the timeout for the stop operation to a value bigger than the sum of the timeout parameters. see alsokill_timeout.
(optional, integer, default 5)
kill_timeoutβ ifbin/shutdown.shdoesn't stop the jboss process, then we send itTERMandQUITsignals, intermittently and once a second. after this timeout expires, if the process is still live, we use theKILLsignal. see alsoshutdown_timeout.
(optional, integer, default 10)
userβ a user name to start a JBoss.
(optional, string, default "root")
statusurlβ the URL to test in the monitor operation.
(optional, string, default "http://127.0.0.1:8080")
java_homeβ home directory of Java. defaults to the environment variableJAVA_HOME. and if that's not set? then bestie you gotta define this parameter yourself. π
(optional, string, no default)
java_optsβ Java options.
(optional, string, no default)
jboss_homeβ home directory of Jboss. this one is required, no skipping.
(required, string, no default)
jboss_base_dirβ base directory of JBoss. heads up: this parameter is not used in JBoss5.
(optional, string, no default)
pstringβ with this string heartbeat matches for the right process to kill. π―
(optional, string, default "java -Dprogram.name=run.sh")
run_commandβ JBoss start command.
(optional, string, default "/bin/run.sh")
run_optsβ start options to start Jboss with, defaults are from the Jboss-Doku.
(optional, string, default "-c default")
shutdown_optsβ stop options to stop Jboss with.
(optional, string, default "-s 127.0.0.1:1099")
rotate_consolelogβ rotate console log flag.
(optional, boolean, default false)
rotate_valueβ console log rotation value (default is86400seconds).
(optional, integer, default 86400)
rotate_logsuffixβ rotate console log suffix.
(optional, integer, default .%F)
β¨ SUPPORTED ACTIONS β¨
this resource agent supports the following actions (operations), and yes every one of them has a suggested minimum timeout because we're responsible like that π
startβ starts the resource. suggested minimum timeout:60s.stopβ stops the resource. suggested minimum timeout:120s.statusβ performs a status check. suggested minimum timeout:30s.monitorβ performs a detailed status check. suggested minimum timeout:30s. suggested interval:10s. πmeta-dataβ retrieves resource agent metadata (internal use only). suggested minimum timeout:5s.validate-allβ performs a validation of the resource configuration. suggested minimum timeout:5s.
β¨ EXAMPLE CRM SHELL β¨
here's an example config for a jboss resource using the crm(8) shell, copied exactly, character for character, because details matter bestie π
primitive p_jboss ocf:heartbeat:jboss \
params \
jboss_home=string \
op monitor depth="0" timeout="30s" interval="10s"
β¨ EXAMPLE PCS β¨
and here's the same energy with pcs(8) β¨
pcs resource create p_jboss ocf:heartbeat:jboss \
jboss_home=string \
op monitor OCF_CHECK_LEVEL="0" timeout="30s" interval="10s"
β¨ SEE ALSO β¨
β¨ AUTHOR β¨
ClusterLabs contributors (see the resource agent source for information about individual authors). love that for them, honestly. π
and that's the whole page, bestie!! this one's from resource-agents UNKNOWN, dated 04/08/2026 β go forth and cluster responsibly πβ¨π¦
π¦ where this page comes from
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms