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

[COOK-3955] Make the initial service actions (e.g., enable, start) attributes #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@
default['supervisor']['loglevel'] = 'info'
default['supervisor']['minfds'] = 1024
default['supervisor']['minprocs'] = 200

default['supervisor']['initial_service_actions'] = [:enable, :start]
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down