Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Supervisor service now subscribes to supervisor config #80

Closed
Closed
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
3 changes: 2 additions & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

case node['platform']
when "amazon", "centos", "debian", "fedora", "redhat", "ubuntu"
template "/etc/init.d/supervisor" do
t=template "/etc/init.d/supervisor" do
source "#{init_template_dir}/supervisor.init.erb"
owner "root"
group "root"
Expand All @@ -91,6 +91,7 @@
service "supervisor" do
supports :status => true, :restart => true
action [:enable, :start]
subscribes :restart, t
end
when "smartos"
directory "/opt/local/share/smf/supervisord" do
Expand Down