Re: Question about notifications


Chronological Thread 
  • From: Arjuna Christensen <aj@opscode.com>
  • To: chef@lists.opscode.com
  • Subject: Re: Question about notifications
  • Date: Fri, 12 Jun 2009 09:36:04 +1200


On 12/06/2009, at 6:56 AM, Jeppe Nejsum Madsen wrote:

Hi,

Besides a few outstanding issues (ruby 1.8.7 doesn't seem to work and this http://tickets.opscode.com/browse/CHEF-269), I've got my EC2 setup going, mostly thanks to the excellent documentation and examples. 

So, next step is to try to speed up my recipes and I'm running into a few areas where I don't think I fully understand how things are supposed to work: 

1) Given this recipe

remote_file "war" do
path "/usr/share/jetty6/webapps/ROOT.war"
owner "jetty"
mode  0640
source node[:war]
        notifies :restart, resources(:service => "jetty6")
end

I would assume Chef would either a) Start the jetty6 service if it was not running or b) restart the jetty6 service if it was running already
And only do this if the remote file has changed.


[snip]

After a little internal discussion, I've opened http://tickets.opscode.com/browse/CHEF-361 and marked it for 0.7.2 which is due in two weeks.

"Init service provider currently doesn't start a service when the 'restart' action is called if the service is not already running."

-- 
AJ Christensen, Software Engineer
Opscode, Inc.
E: aj@opscode.com




Archive powered by MHonArc 2.6.16.

§