Did you run cf-agent with -K? if_elapsed works fine for me.
cf3> =========================================================
cf3> commands in bundle test (1)
cf3> =========================================================
cf3>
cf3> -> Promiser string contains a valid executable (/tmp/backup.sh) - ok
cf3> XX Nothing promised here [lock.test.commands.contain.use] (1/1000 minutes
elapsed)
cf3>
cf3> + Private classes augmented:
cf3>
cf3> - Private classes diminished:
cf3> =========================================================
cf3> commands in bundle test (1)
cf3> =========================================================
cf3>
cf3> -> Promiser string contains a valid executable (/tmp/backup.sh) - ok
cf3> XX Nothing promised here [lock.test.commands.contain.use] (4/1000 minutes
elapsed)
cf3>
cf3> + Private classes augmented:
cf3>
cf3> - Private classes diminished:
[r...@cf-redhat5 tmp]# cf-agent -V
This comprises cf-agent core community version 3.0.4p1 - (C) Cfengine AS 2008-
Cheers,
--Nakarin
On Mar 26, 2010, at 10:43 PM, Daniel Holth wrote:
> This command executes every time I run cf-agent, even if I didn't wait 1000
> minutes? What am I doing wrong?
>
> commands:
> "backup.sh"
> contain => in_shell,
> action => if_elapsed("1000");
>
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine