On 07/24/2014 02:37 PM, Girish Kg wrote:
> Can someone help me with this please.
There have been some fixes that are coming in 3.6.1
CFEngine Core 3.6.1.cbc51dd
files:
"/tmp/watch/."
changes => detect_all_change,
depth_search => recurse("inf");
[root@hub masterfiles]# touch /tmp/watch/file
[root@hub masterfiles]# cf-agent -KIf ./
promises.cf
...
2014-07-24T19:45:58+0000 notice:
/default/service_catalogue/files/'/tmp/watch/.'[0]: New file
'/tmp/watch/./file' found
2014-07-24T19:45:58+0000 notice:
/default/service_catalogue/files/'/tmp/watch/.'[0]: Storing sha512 hash
for '/tmp/watch/./file'
(SHA=cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e)
[root@hub masterfiles]# rm /tmp/watch/file
rm: remove regular empty file `/tmp/watch/file'? yes
[root@hub masterfiles]# cf-agent -KIf ./
promises.cf
...
2014-07-24T19:47:19+0000 notice:
/default/service_catalogue/files/'/tmp/watch/.'[0]: File
'/tmp/watch/./file' no longer exists
[root@hub masterfiles]# mkdir /tmp/watch/dir
[root@hub masterfiles]# cf-agent -KIf ./
promises.cf
...
2014-07-24T19:47:58+0000 notice:
/default/service_catalogue/files/'/tmp/watch/.'[0]: New file
'/tmp/watch/./dir' found
[root@hub masterfiles]# rm -rf /tmp/watch/dir
[root@hub masterfiles]# cf-agent -KIf ./
promises.cf
...
2014-07-24T19:48:22+0000 notice:
/default/service_catalogue/files/'/tmp/watch/.'[0]: File
'/tmp/watch/./dir' no longer exists