]> git.openstreetmap.org Git - chef.git/commitdiff
Restart FPM when the configuration changes
authorTom Hughes <tom@compton.nu>
Sun, 12 Jul 2020 18:47:46 +0000 (19:47 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 12 Jul 2020 18:54:49 +0000 (19:54 +0100)
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