Forum: CFEngine Help Subject: Multple (identical) command executions optimized away? Author: j.mullins Link to topic: https://cfengine.com/forum/read.php?3,25777,25777#msg-25777
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. Is CFEngine attempting to optimize away the additional executions? I cannot find any documentation that indicates this, and, since external commands often have side effects, this doesn't make much sense. Is this the expected behavior? 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'm seeing this behavior with cfengine-community-3.2.1-1.el5 on Linux (CentOs 5.7) 2.6.18-274.17.1.el5 #1 SMP. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine