OCF_HEARTBEAT_TOMCAT(7)
π ocf_heartbeat_tomcat β the manual, but make it cute π
okay bestie, you're holding OCF_HEARTBEAT_TOMCAT(7) and honestly? it's giving "cluster resource but make it servlet energy" π«Ά. Sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
ocf_heartbeat_tomcat β manages a Tomcat servlet environment instance. yes, that Tomcat. the Java one. the icon π
πΈ SYNOPSIS πΈ
tomcat [start | stop | status | monitor | meta-data | validate-all]
π¦ DESCRIPTION π¦
So basically: this is a resource script for Tomcat π . It manages a Tomcat instance as a cluster resource. That's it, that's the whole vibe. Your cluster babysits Tomcat now, no cap.
π SUPPORTED PARAMETERS π
This is the main character section, fr fr. Every single knob you can turn:
tomcat_nameβ the name of the resource, added as a Java parameter inJAVA_OPTS:
-Dname=<tomcat_name>
to the Tomcat process on start. It's used to make sure the process is still running, and it must be unique. (unique, optional, string, default "tomcat")
script_logβ the log file, used duringstartandstopoperations. (unique, optional, string, default"/var/log/tomcat.log")tomcat_stop_timeoutβ time-out for the stop operation. DEPRECATED, bestie, don't build your life around it. (optional, integer, no default)tomcat_suspend_trialcountβ maximum number of times to retry the stop operation before suspending and killing Tomcat. DEPRECATED. And lowkey it does not retry. (optional, integer, no default)tomcat_userβ the user who starts Tomcat. (optional, string, default"root")statusurlβ URL for state confirmation. (optional, string, default"http://127.0.0.1:8080")max_stop_timeβ number of seconds to wait during a stop before drastic measures (force kill π₯) are used on the tomcat process. This number MUST be less than your cluster stop timeout for the resource. The default value is five seconds before the timeout value of the stop operation. When it is over this value, it stops a process in kill commands. Heads up: this parameter is only effective on Tomcat 6 or later. (optional, integer, no default)java_homeβ home directory of Java. required, so like, you gotta. (required, string, no default)java_optsβ Java JVM options used onstartandstop. (optional, string, no default)catalina_homeβ home directory of Tomcat. also required π«Ά (required, string, no default)catalina_baseβ instance directory of Tomcat. (unique, optional, string, no default)catalina_outβ log file name of Tomcat. (unique, optional, string, default"/logs/catalina.out")catalina_pidβ a PID file name for Tomcat. (unique, optional, string, no default)force_systemdβ force use of systemd when available. (optional, string, default"1")tomcat_start_scriptβ absolute path to the custom tomcat start script to use. (optional, string, no default)tomcat_start_optsβ Tomcat start options. (optional, string, no default)catalina_optsβ Catalina options, for thestartoperation only. (optional, string, no default)catalina_tmpdirβ temporary directory of Tomcat. (unique, optional, string, no default)catalina_rotate_logβ rotatecatalina.outflag. (optional, boolean, defaultNO)catalina_rotatetimeβcatalina.outrotation interval (seconds). (optional, integer, default86400)java_endorsed_dirsβJava_endorsed_dirsof tomcat. (unique, optional, string, no default)logging_configβLogging_configof tomcat. (unique, optional, string, no default)logging_managerβLogging_managerof tomcat. (unique, optional, string, no default)
β SUPPORTED ACTIONS β
This resource agent supports the following actions (operations), and yes every one of them is doing the lord's work:
startβ starts the resource. Suggested minimum timeout:60s.stopβ stops the resource. Suggested minimum timeout:120s.statusβ performs a status check. Suggested minimum timeout:60s.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 what it looks like to set up a tomcat resource using the crm(8) shell:
primitive p_tomcat ocf:heartbeat:tomcat \
params \
java_home=string \
catalina_home=string \
op monitor depth="0" timeout="30s" interval="10s"
π EXAMPLE PCS π
And the same energy, but with pcs(8):
pcs resource create p_tomcat ocf:heartbeat:tomcat \
java_home=string \
catalina_home=string \
op monitor OCF_CHECK_LEVEL="0" timeout="30s" interval="10s"
π SEE ALSO π
http://clusterlabs.org/ β go say hi, they're iconic.
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors). absolute legends, every one of them π«Ά
and that's the whole page, bestie! this was resource-agents UNKNOWN (yes, the version is literally "UNKNOWN", we don't talk about it π), dated 04/08/2026, and it lives at OCF_HEARTBEAT_TOMCAT(7). slay, go manage that servlet β¨π
π¦ 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