Skip to content
This repository was archived by the owner on Oct 15, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -115,5 +119,6 @@

service "supervisord" do
action [:enable]
subscribes :restart, "template[#{node['supervisor']['conffile']}]", :immediately
end
end