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

NAME

6       ocf_heartbeat_symlink - Manages a symbolic link
7

SYNOPSIS

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

DESCRIPTION

12       This resource agent that manages a symbolic link (symlink).
13
14       It is primarily intended to manage configuration files which should be
15       enabled or disabled based on where the resource is running, such as
16       cron job definitions and the like.
17

SUPPORTED PARAMETERS

19       link
20           Full path of the symbolic link to be managed. This must obviously
21           be in a filesystem that supports symbolic links.  (required,
22           string, no default)
23
24       target
25           Full path to the link target (the file or directory which the
26           symlink points to).  (required, string, no default)
27
28       backup_suffix
29           A suffix to append to any files that the resource agent moves out
30           of the way because they clash with "link". .sp If this is unset
31           (the default), then the resource agent will simply refuse to create
32           a symlink if it clashes with an existing file.  (optional, string,
33           no default)
34

SUPPORTED ACTIONS

36       This resource agent supports the following actions (operations):
37
38       start
39           Starts the resource. Suggested minimum timeout: 15.
40
41       stop
42           Stops the resource. Suggested minimum timeout: 15.
43
44       monitor
45           Performs a detailed status check. Suggested minimum timeout: 15.
46           Suggested interval: 60.
47
48       meta-data
49           Retrieves resource agent metadata (internal use only). Suggested
50           minimum timeout: 5.
51
52       validate-all
53           Performs a validation of the resource configuration. Suggested
54           minimum timeout: 10.
55

EXAMPLE

57       The following is an example configuration for a symlink resource using
58       the crm(8) shell:
59
60           primitive p_symlink ocf:heartbeat:symlink \
61             params \
62               link=string \
63               target=string \
64             op monitor depth="0" timeout="15" interval="60"
65

SEE ALSO

67       http://www.linux-ha.org/wiki/symlink_(resource_agent)
68

AUTHOR

70       Linux-HA contributors (see the resource agent source for information
71       about individual authors)
72
73
74
75resource-agents 3.9.2             07/08/2011           OCF_HEARTBEAT_SYMLIN(7)
Impressum