From da28f83e18ba2c21741a60ee232db4a98e4e745e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva=20and=20Will=20Hamilton?= Date: Wed, 6 Nov 2013 17:09:26 +0000 Subject: [PATCH] Make the initial service actions (e.g., enable, start) attributes --- attributes/default.rb | 2 ++ recipes/default.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 7119e52..f68b4b7 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -34,3 +34,5 @@ default['supervisor']['loglevel'] = 'info' default['supervisor']['minfds'] = 1024 default['supervisor']['minprocs'] = 200 + +default['supervisor']['initial_service_actions'] = [:enable, :start] diff --git a/recipes/default.rb b/recipes/default.rb index 57ce518..cede7c2 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -81,7 +81,7 @@ end service "supervisor" do - action [:enable, :start] + action node['supervisor']['initial_service_actions'] end when "smartos" directory "/opt/local/share/smf/supervisord" do