{"action":"opened","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3184","labels_url":"https://api.github.com/repos/chef/chef/issues/3184/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3184/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3184/events","html_url":"https://github.com/chef/chef/issues/3184","id":65942833,"number":3184,"title":"File resources touch files at each run, causing jboss to redeploy.","user":{"login":"Tensibai","id":1235658,"avatar_url":"https://avatars.githubusercontent.com/u/1235658?v=3","gravatar_id":"","url":"https://api.github.com/users/Tensibai","html_url":"https://github.com/Tensibai","followers_url":"https://api.github.com/users/Tensibai/followers","following_url":"https://api.github.com/users/Tensibai/following{/other_user}","gists_url":"https://api.github.com/users/Tensibai/gists{/gist_id}","starred_url":"https://api.github.com/users/Tensibai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tensibai/subscriptions","organizations_url":"https://api.github.com/users/Tensibai/orgs","repos_url":"https://api.github.com/users/Tensibai/repos","events_url":"https://api.github.com/users/Tensibai/events{/privacy}","received_events_url":"https://api.github.com/users/Tensibai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-02T14:47:18Z","updated_at":"2015-04-02T14:47:18Z","closed_at":null,"body":"When using a template the destination file is touched at each run.\r\nAccording to [This comment](https://github.com/chef/chef/blob/11.16.4/lib/chef/file_content_management/deploy/mv_unix.rb#L32) it is to ensure the permissions are correctly inherited.\r\n\r\nThe edge case where it can be a problem is when an application server in autodeploy mode watch the target file, when chef touch it, the mtime is modified and the app server think there's a new version and reload the app.\r\n\r\nworking on a PR for that. "}}