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