]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/recipes/fpm.rb
Restart FPM when the configuration changes
[chef.git] / cookbooks / php / recipes / fpm.rb
index be90a67833cf3e73f4fad041bdb0ee9c78a4a323..3b4a1d1c1aa275c1ce7522906632fe16501b9759 100644 (file)
@@ -27,6 +27,7 @@ template "/etc/php/#{node[:php][:version]}/fpm/conf.d/99-chef.ini" do
   owner "root"
   group "root"
   mode 0o644
+  notifies :restart, "service[php#{node[:php][:version]}-fpm]"
 end
 
 service "php#{node[:php][:version]}-fpm" do