Le 22/08/2013 16:17, Andrew Gross a écrit :Hi Andrew,
execute "Update Cassandra" do
notifies :run, execute[Downtime Cassandra Host],
end
execute "Downtime Cassandra Host" do
action :nothing
notifies :restart, service[Cassandra],
end
service "Cassandra" do
action :nothing
end
thanks for your reply.
This issue with your solution is that it assumes that you can update the package and then decide to restart the service.
In my case, the package contains triggers to update restart the service (stop it as pre-install and start as post-install hook). This pattern is quite commom I guess on rhel and debian systems.
So in your example you would have updated the package (thus restart the service), downtimed the host and restart the service once more.
--
Gregoire
Archive powered by MHonArc 2.6.16.