diff --git a/recipes/default.rb b/recipes/default.rb index b2df96f..7daa1a3 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -92,7 +92,11 @@ service "supervisor" do supports :status => true, :restart => true action [:enable, :start] + subscribes :restart, "template[#{node['supervisor']['conffile']}]", :delayed + subscribes :restart, "template[/etc/init.d/supervisor]", :delayed + subscribes :restart, "template]/etc/default/supervisor]", :delayed if platform_family?("debian") end + when "smartos" directory "/opt/local/share/smf/supervisord" do owner "root" @@ -115,5 +119,6 @@ service "supervisord" do action [:enable] + subscribes :restart, "template[#{node['supervisor']['conffile']}]", :immediately end end