Forum: Cfengine Help
Subject: Re: cf_lock.db gets bigger and bigger
Author: Lars.O
Link to topic: https://cfengine.com/forum/read.php?3,19875,20146#msg-20146

The db_dump command is very useful for examining cf_lock.db. Thank again 
eystein.
Here's another thing which increases cf_lock.db.


bundle agent heartbeat {

   vars:
      "heartbeatlocation" string => "/var/cfengine/CfengineData/Heartbeat";

   commands:
      "/bin/echo '$(sys.uqhost) $(sys.date)' > 
$(heartbeatlocation)/$(sys.uqhost)",
         contain => standard;
}

#########################################################
body contain standard {

   exec_owner => "root";
   useshell   => "true";
}


This is also av varying promise.
Looking at the readable part of the db_dump output, I see that entries lock.* 
are removed but (some or all?) last.* are kept forever.
Entries looking like .B\00\00\9b\1b0M I don't understand at all of course.
... copy_from.source ... adds to cf_lock.db
... file_select.leaf_name ... adds to cf_lock.db
... delete_if_match_from_list ... adds to cf_lock.db
and so on.

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

Reply via email to