Skip to content

Commit

Permalink
added notifies to restart service after edits
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Jun 15, 2011
1 parent 586cfe5 commit f292d43
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cookbooks/daikon/recipes/default.rb
Expand Up @@ -26,6 +26,9 @@
end end
end end


# HACK: to make chef 0.6 happy
service "daikon"

case node[:platform] case node[:platform]
when "ubuntu", "debian" when "ubuntu", "debian"
template "/etc/init/daikon.conf" do template "/etc/init/daikon.conf" do
Expand All @@ -35,6 +38,7 @@
action :create action :create
backup false backup false
source "daikon.upstart.erb" source "daikon.upstart.erb"
notifies :restart, resources(:service => "daikon")
end end
else else
template "/etc/init.d/daikon" do template "/etc/init.d/daikon" do
Expand All @@ -43,7 +47,8 @@
mode 0755 mode 0755
action :create action :create
source "daikon.initd.erb" source "daikon.initd.erb"
variables :node => node # to support chef 0.6 variables :node => node # HACK: to support chef 0.6
notifies :restart, resources(:service => "daikon")
end end
end end


Expand Down

0 comments on commit f292d43

Please sign in to comment.