From 7f70bded8f3712f8f07e1e643ecf6170a8ede10d Mon Sep 17 00:00:00 2001 From: Nitz Date: Thu, 25 Dec 2014 10:28:35 +0200 Subject: [PATCH] Supervisor service now subscribes to supervisor config --- recipes/default.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/default.rb b/recipes/default.rb index ee8af2d..3eb287a 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -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" @@ -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