1OCF_HEARTBEAT_ANYTHI(7)       OCF resource agents      OCF_HEARTBEAT_ANYTHI(7)
2
3
4

NAME

6       ocf_heartbeat_anything - Manages an arbitrary service
7

SYNOPSIS

9       anything [start | stop | monitor | meta-data | validate-all]
10

DESCRIPTION

12       This is a generic OCF RA to manage almost anything.
13

SUPPORTED PARAMETERS

15       binfile
16           The full name of the binary to be executed. This is expected to
17           keep running with the same pid and not just do something and exit.
18           (unique, required, string, no default)
19
20       cmdline_options
21           Command line options to pass to the binary (optional, string, no
22           default)
23
24       workdir
25           The path from where the binfile will be executed.  (optional,
26           string, no default)
27
28       pidfile
29           File to read/write the PID from/to.  (optional, string, default
30           /var/run//anything_default.pid)
31
32       logfile
33           File to write STDOUT to (optional, string, no default)
34
35       errlogfile
36           File to write STDERR to (optional, string, no default)
37
38       user
39           User to run the command as (optional, string, default root)
40
41       monitor_hook
42           Command to run in monitor operation (optional, string, no default)
43
44       stop_timeout
45           In the stop operation: Seconds to wait for kill -TERM to succeed
46           before sending kill -SIGKILL. Defaults to 2/3 of the stop operation
47           timeout.  (optional, string, no default)
48

SUPPORTED ACTIONS

50       This resource agent supports the following actions (operations):
51
52       start
53           Starts the resource. Suggested minimum timeout: 20s.
54
55       stop
56           Stops the resource. Suggested minimum timeout: 20s.
57
58       monitor
59           Performs a detailed status check. Suggested minimum timeout: 20s.
60           Suggested interval: 10.
61
62       meta-data
63           Retrieves resource agent metadata (internal use only). Suggested
64           minimum timeout: 5.
65
66       validate-all
67           Performs a validation of the resource configuration. Suggested
68           minimum timeout: 5.
69

EXAMPLE

71       The following is an example configuration for a anything resource using
72       the crm(8) shell:
73
74           primitive p_anything ocf:heartbeat:anything \
75             params \
76               binfile=string \
77             op monitor depth="0" timeout="20s" interval="10"
78

SEE ALSO

80       http://www.linux-ha.org/wiki/anything_(resource_agent)
81

AUTHOR

83       Linux-HA contributors (see the resource agent source for information
84       about individual authors)
85
86
87
88resource-agents 3.9.2             07/08/2011           OCF_HEARTBEAT_ANYTHI(7)
Impressum