Skip to content

Commit

Permalink
Merge pull request #25 from jubianchi/patch-2
Browse files Browse the repository at this point in the history
Delay the consul reload when config file changes
  • Loading branch information
John Bellone committed Jul 28, 2014
2 parents 5450f6f + d1f2116 commit 06b7d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
service 'consul' do
supports status: true, restart: true, reload: true
action [:enable, :start]
subscribes :reload, "file[#{node[:consul][:config_dir]}/default.json]", :immediately
subscribes :reload, "file[#{node[:consul][:config_dir]}/default.json]", :delayed
end
when 'runit'
include_recipe 'runit'
Expand Down

0 comments on commit 06b7d7a

Please sign in to comment.