- From: Ranjib Dey <
>
- To:
- Subject: [chef] Re: Issues with chef-client daemon RHEL5
- Date: Thu, 31 Jan 2013 09:49:45 -0800
you have a resources(template), that is setup to notify another resource(service) which is not present. Now, notifications are only triggered once the resource is changes, i.e. unless the template resource is changed, the service restart notification wont be triggered. It seems like for some reason your template is not changed in the first run, it changes in the second run (which is a different issue). But also, you dont have to service resource missing. Check your recipes, for a service "testservice" resource, if its not there , then you might have to remove the notification, or create that service resource. Also check if you are supposed to include another recipe (if you find that the service is indeed decalred in another recipe).
template "config.conf" do
. ..something..
notifies :restart ,"service[testservice]"
end
--- somewhere in your cookbook you should have--, if not, then create one
service "testservice" do
end
Archive powered by MHonArc 2.6.16.