1OCF_HEARTBEAT_STATEF(7) OCF resource agents OCF_HEARTBEAT_STATEF(7)
2
3
4
6 ocf_heartbeat_Stateful - Example stateful resource agent
7
9 Stateful [start | stop | monitor | meta-data | validate-all]
10
12 This is an example resource agent that impliments two states
13
15 state
16 Location to store the resource state in (unique, optional, string,
17 default
18 /var/run/heartbeat/rsctmp/Stateful-{OCF_RESOURCE_INSTANCE}.state)
19
21 This resource agent supports the following actions (operations):
22
23 start
24 Starts the resource. Suggested minimum timeout: 20s.
25
26 stop
27 Stops the resource. Suggested minimum timeout: 20s.
28
29 monitor
30 Performs a detailed status check. Suggested minimum timeout: 20.
31 Suggested interval: 10.
32
33 meta-data
34 Retrieves resource agent metadata (internal use only). Suggested
35 minimum timeout: 5.
36
37 validate-all
38 Performs a validation of the resource configuration. Suggested
39 minimum timeout: 20s.
40
42 The following is an example configuration for a Stateful resource using
43 the crm(8) shell:
44
45 primitive p_Stateful ocf:heartbeat:Stateful \
46 op monitor depth="0" timeout="20" interval="10"
47
49 http://www.linux-ha.org/wiki/Stateful_(resource_agent)
50
52 Linux-HA contributors (see the resource agent source for information
53 about individual authors)
54
55
56
57resource-agents 3.9.2 07/08/2011 OCF_HEARTBEAT_STATEF(7)