template 'C:\CURTIME.TXT' do
source "curtime.txt.erb"
action :create
notifies :restart, "service[w32time]"
end
service "w32time" do
action [:enable, :start]
end
This template will signal the service to restart all the time, since it will change on every Chef run.
<%= Time.now %>