---
name: "ocf_pacemaker_Stateful"
section: "7"
platform: "linux"
package: "pacemaker-resource-agents"
version: "3.0.0-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_pacemaker_Stateful"
---

# ocf\_pacemaker\_Stateful(7)

Example stateful resource agent

## NAME

ocf\_pacemaker\_Stateful - Example stateful resource agent

## SYNOPSIS

\[**OCF\_RESKEY\_state**=string\] \[**OCF\_RESKEY\_envfile**=string\] \[**OCF\_RESKEY\_notify\_delay**=string\]

**Stateful** \[start \| stop \| monitor \| monitor \| promote \| demote \| notify \| meta-data \| reload-agent \| validate-all\]

## DESCRIPTION

This is an example resource agent that implements Promoted and Unpromoted roles

## SUPPORTED PARAMETERS

**OCF\_RESKEY\_state** = string \[/Stateful-.state\]

State file

Location to store the resource state in

**OCF\_RESKEY\_envfile** = string \[\]

Environment dump file

If this is set, the environment will be dumped to this file for every call.

**OCF\_RESKEY\_notify\_delay** = string \[\]

Notify delay in seconds

The notify action will sleep for this many seconds before returning, to simulate a long-running notify.

## AUTHOR

**Andrew Beekhof** \<andrew@beekhof.net\>

Author.
