Skip to content

Commit

Permalink
Support "notifies :reload, 'service[consul]'"
Browse files Browse the repository at this point in the history
  • Loading branch information
webcoyote committed Jan 23, 2015
1 parent 0ccddbe commit 385865e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,9 @@
config_dir: node['consul']['config_dir'],
)
end

service 'consul' do
supports :status => true, :restart => true, :reload => true
reload_command "'#{node['runit']['sv_bin']}' hup consul"
end
end

0 comments on commit 385865e

Please sign in to comment.