help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Possible bug: parsing/scheduling of editfiles sectionsin multiple cf


From: Moore, Joe
Subject: RE: Possible bug: parsing/scheduling of editfiles sectionsin multiple cfengine scripts
Date: Mon, 12 Sep 2005 14:10:11 -0700

Knut Auvor Grythe wrote:
> On Mon, Sep 12, 2005 at 12:09:19PM -0600, Ed Brown wrote:
> > I appreciate your effort to clarify the algorithms involved in
> > actionsequence scheduling, but even the algorithms don't explain the
> > actual behavior very fully. 
> 
> It's actually quite simple. When you add "shellcommands.pre" to your
> actionsequence, it means that "pre" is going to be defined when the
> shellcommands sequence is run. This means that you need to test for
> "pre" to know whether you are in that particular run of 
> shellcommands or
> not. It behaves exactly like any other class.

And just to reinforce, the reason you don't see "any" printed out more
than once in your examples is because of cfengine's locking mechanism,
which declines to run the shellcommand "echo any" more than once per
timeout.

--Joe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]