Permalink
Browse files

added notifies to restart service after edits

  • Loading branch information...
1 parent 586cfe5 commit f292d432183841014dea417fd5cfc72e4e75ad26 @nevans nevans committed Jun 15, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 cookbooks/daikon/recipes/default.rb
@@ -26,6 +26,9 @@
end
end
+# HACK: to make chef 0.6 happy
+service "daikon"
+
case node[:platform]
when "ubuntu", "debian"
template "/etc/init/daikon.conf" do
@@ -35,6 +38,7 @@
action :create
backup false
source "daikon.upstart.erb"
+ notifies :restart, resources(:service => "daikon")
end
else
template "/etc/init.d/daikon" do
@@ -43,7 +47,8 @@
mode 0755
action :create
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

0 comments on commit f292d43

Please sign in to comment.