----- Original Message ----- > From: "Tim Ward" <tim.w...@ipaccess.com> > To: "The Pacemaker cluster resource manager" <pacemaker@oss.clusterlabs.org> > Sent: Thursday, March 15, 2012 8:58:19 AM > Subject: Re: [Pacemaker] How to stop a resource? > > I think that describes an interactive session? > > I know I can do it interactively - just go and have a cup of coffee > after the "stop" and before the "delete" and manually poll crm > status - but what I need is a programmatic way of doing it.
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? HTH Jake _______________________________________________ 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