On 08/02/2012 08:17 AM, Nick Anderson wrote:
> Basically the promisee has not promised anything, so its ok.
> If you add a process_count attribute to that promise body I think you
> might start seeing the behaviour you were expecting or looking for.

Here is an example.

body common control {

     bundlesequence => {"main",};

     inputs => {"cfengine_stdlib.cf"};
}

bundle agent main{
processes:
   "sleep"
     process_count => any_count("sleep_running"),
     comment => "what does process_count any_count do?";

reports:
   sleep_running::
     "process matching sleep is running ";

   !sleep_running::
     "process matching sleep is NOT running";
}

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to