Skip to content

Commit

Permalink
Merge pull request #110 from undeadlabs/consul-runit-reload
Browse files Browse the repository at this point in the history
Support consul reload when using runit
  • Loading branch information
reset committed Jan 24, 2015
2 parents 0ccddbe + 385865e commit 029f4df
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 029f4df

Please sign in to comment.