Hi folks,

I am looking for a good way of checking if a resource is in "starting"
state.
The thing is - I need to issue a command and I don't want to issue that
command when this particular resource is starting. This resource start can
take up to a few min.
As a note, I am OK with issuing that command if a resource is stopped
(before it starts).

The best I can think of, is to check for an ongoing state transition of a
resource in a loop with "crm_simulate -Ls" command.
But with this approach I need to put the command into a loop, cut
"Transition Summary" part, and then grep for the needed resource.
And even that I have a question if this way is reliable?

Maybe be there is a better way of achieving the same result.

Thank you,
Kostia
_______________________________________________
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to