Skip to content

Commit

Permalink
Merge pull request #14 from bkw/reloadOnChanges
Browse files Browse the repository at this point in the history
Reload on changes
  • Loading branch information
John Bellone committed Jun 9, 2014
2 parents b08ad16 + 89ed69b commit 84b63f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@
service 'consul' do
supports status: true, restart: true, reload: true
action [:enable, :start]
subscribes :reload, "file[#{node[:consul][:config_dir]}/default.json]", :immediately
subscribes :restart, "template[/etc/init.d/consul]", :immediately
end

0 comments on commit 84b63f9

Please sign in to comment.