]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/spamassassin/recipes/default.rb
Convert all notify/subscribe calls to the new style syntax
[chef.git] / cookbooks / spamassassin / recipes / default.rb
index ec1109c763447185fa0d50af7914b2a8a905b6b1..e9150a55d219d6851fa8af05e82d9c90c9a9d7d2 100644 (file)
@@ -29,7 +29,7 @@ template "/etc/default/spamassassin" do
   owner "root"
   group "root"
   mode 0644
-  notifies :restart, resources(:service => "spamassassin")
+  notifies :restart, "service[spamassassin]"
 end
 
 trusted_networks = node[:exim][:relay_from_hosts]
@@ -48,5 +48,5 @@ template "/etc/spamassassin/local.cf" do
   group "root"
   mode 0644
   variables :trusted_networks => trusted_networks.sort
-  notifies :restart, resources(:service => "spamassassin")
+  notifies :restart, "service[spamassassin]"
 end