On Wed, Apr 25, 2012 at 04:20:23PM -0400, no-re...@cfengine.com wrote: >Forum: CFEngine Help >Subject: Re: Process matching by start time >Author: msvob...@linkedin.com >Link to topic: https://cfengine.com/forum/read.php?3,25522,25697#msg-25697 > >I'm trying to do the same Jesse. I think we're using stime_range incorrectly >here. The first value probably shouldn't be zero.
Actually, there is an argument to be made that it should be zero. Let's say you want to kill old, crufty cf-agent processes that are more than 1 hour old (similar to your other email). If stime_range deals in absolute epoch seconds, then we *do* want to use zero, since that marks the beginning of the epoch. I believe that this is correct usage, and is implied by the fact we have to use the "ago()" function to calculate the absolute epoch time based on constructs like "X days, Y hours, Z minutes ago". On the other hand, if it uses relative times, we'd want to use "inf" instead, since we want all processes that are infinately old, up to 1 hour ago. -- Jesse Becker NHGRI Linux support (Digicon Contractor) :(){ :&:};: _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine