OCF_HEARTBEAT_ANYTHI(7)
π ocf_heartbeat_anything(7) β like, the manual page, but make it make sense
okay so bestie, welcome to the OCF resource agents corner of the internet, this one's OCF_HEARTBEAT_ANYTHI(7) and it's literally the manual page for ocf_heartbeat_anything. yes the title got chopped mid-word, no we're not gonna talk about it π
β¨ NAME β¨
ocf_heartbeat_anything β manages an arbitrary service. that's it, that's the whole vibe. she's a generalist π
πΈ SYNOPSIS πΈ
anything [start | stop | monitor | meta-data | validate-all]
like, pick an action, any action. slay.
π¦ DESCRIPTION π¦
okay so real talk: this is a generic OCF RA (resource agent, keep up π ) that manages almost anything. not everything β almost. she's flexible like that. no cap.
π₯ SUPPORTED PARAMETERS π₯
every single one, bestie, we're not skipping a single one. iykyk.
binfileβ the full name of the binary to be executed. heads up though: whatever this is, it's expected to keep running with the same pid β it does not just do a thing and bounce. it stays. main character energy only. (required, string, no default π«Ά)cmdline_optionsβ command line options you wanna pass to the binary. (optional, string, no default)workdirβ the path from where thebinfilewill be executed. like, where she gets her start. (optional, string, no default)pidfileβ file to read/write the PID from/to. (optional, string, default"/var/run/anything_RESOURCE_ID.pid")logfileβ file to write STDOUT to. (optional, string, default"/dev/null") β yes, the default is the void, the void is undefeated πerrlogfileβ file to write STDERR to. (optional, string, no default)userβ user to run the command as. (optional, string, default"root") β ngl, root is a lot of power, be responsible bestie πmonitor_hookβ command to run in monitor operation. (optional, string, no default)stop_timeoutβ in the stop operation: seconds to wait forkill -TERMto succeed before sendingkill -SIGKILL. defaults to 2/3 of the stop operation timeout. so she's polite first, then she's not ππͺ (optional, string, no default)
π SUPPORTED ACTIONS π
this resource agent supports the following actions (operations), and yes each one has a suggested minimum timeout, write them down:
startβ starts the resource. suggested minimum timeout:20s. go bestie go πstopβ stops the resource. suggested minimum timeout:20s.monitorβ performs a detailed status check. suggested minimum timeout:20s. suggested interval:10s. she's checking on you every 10 seconds, it's giving concerned bestie π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 a anything resource looks like using the crm(8) shell, verbatim, do not touch:
primitive p_anything ocf:heartbeat:anything \
params \
binfile=string \
op monitor depth="0" timeout="20s" interval="10s"
π EXAMPLE PCS π
and here's the same deal with pcs(8):
pcs resource create p_anything ocf:heartbeat:anything \
binfile=string \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
note the depth="0" vs OCF_CHECK_LEVEL="0" glow-up β different tools, same energy β¨
β SEE ALSO β
- http://clusterlabs.org/ β go click, she's iconic
π AUTHOR π
ClusterLabs contributors β see the resource agent source for information about individual authors. the whole squad, fr fr π«Ά
and that's the page!! every flag, every default, every timeout, every example β all of it, preserved, no cap π
resource-agents UNKNOWN πΈ dated 10/01/2026 β and that's the footer bestie, we made it to the end, OCF_HEARTBEAT_ANYTHI(7) ate and left no crumbs π§π
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms