On 03/15/2012 02:23 PM, Tim Ward wrote: >> From: Jake Smith [mailto:jsm...@argotec.com] >> >> Maybe totally in the wrong direction for what you want but... >> Put commands in a script and add a until loop with a pgrep >> test and sleep 1 till the specific resource is stopped then continue? > > Yes, probably is in the wrong direction. I'm driving this from Java and have > written an interface to the "crm" command, which is how I was advised to get > at Pacemaker from Java when I enquired on this list. >
I think your problem is, that a "crm resource stop" is asynchronous ... it exits immediately, not waiting for the resource to stop eventually. How about looping on "crm resource status _resource_" before deleting? Regards, Andreas -- Need help with Pacemaker? http://www.hastexo.com/now > Tim Ward > Brett Ward Limited - www.brettward.co.uk > > > > > > > This message contains confidential information and may be privileged. If you > are not the intended recipient, please notify the sender and delete the > message immediately. > > ip.access Ltd, registration number 3400157, Building 2020, > Cambourne Business Park, Cambourne, Cambridge CB23 6DW, United Kingdom > > _______________________________________________ > Pacemaker mailing list: Pacemaker@oss.clusterlabs.org > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: http://bugs.clusterlabs.org
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org