On 05/01/2012 08:29 AM, no-re...@cfengine.com wrote:
> If the same exact command is attempted to be executed multiple
> times with the same agent bundle, only the first occurence is
> executed. This is often necessary during system bootstraping,
> where a program may need to be restarted several times. 

I suspect that not only the promiser is the same but also all of the
promise attributes in that situation.

afaik CFEngine will not execute the same promise again because of the
default lock (5 minutes). You could probably set the action attribute to
if_elapsed("0")
action => if_elapsed("0")

The action body if_elapsed can be found in the COPBL/stdlib.

You might also be able to differentiate them as different promises by
setting a handle attribute on each one.

> I've found a workaround to this issue for now. If unique classes
> are added to the command, with cmd_repair,  all occurences of
> the command are executed.

I am not familiar with cmd_repair, but if you are setting different
classses attributes then they are all distinctly different promises and
I would expect them to execute.

Does that make sense?

Check out this grammatical form diagram.
https://cfengine.com/manuals/cf3-Reference#Rules-are-promises

The promiser and all of the attributes combined comprise a complete
promise. At least thats my understanding, but I have been wrong before :)

-- 
Nick Anderson <n...@cmdln.org>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to