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.
Regards
Dominik
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems