Hi Dominik,

--On 17. Juli 2008 15:50:43 +0200 Dominik Klein <[EMAIL PROTECTED]> wrote:

Dirk H. Schulz wrote:
Hi all,

I have searched lots of documentation but did not find a clear answer to
the following question:

I want to have a script/a command run once when a resource is started on
a node and once when the resource is stopped on the node.
As I understand it, I cannot define the script/command as an additional
resource, because a resource has to run permanently and is monitored via
the "status" parameter. Correct?

But what else can I use for one timers then?

Dirk

Look at the Dummy resource agent. /usr/lib/ocf/resource.d/heartbeat/Dummy

It should be easy enough to modify it to take an attribute such as a
script and execute that. You might want to look at
http://www.linux-ha.org/OCFResourceAgent before trying to modify the
script if you did not touch an RA before.

Ah well, that seems a bit complex (I am completely new to Linux-HA). I have looked into the Dummy RA and the general OCF RA documentation and have viewed a few of the existing OCF RA agents. So I have decided to use an LSB resource agent for the first weeks to get going until I have time to dive deeper.

Dirk

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to