From 385865e90fcf1ed2c24428e1c38289cc9898465b Mon Sep 17 00:00:00 2001 From: Patrick Wyatt Date: Fri, 23 Jan 2015 15:58:43 -0800 Subject: [PATCH] Support "notifies :reload, 'service[consul]'" --- recipes/_service.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/_service.rb b/recipes/_service.rb index 25b20147..e902b083 100644 --- a/recipes/_service.rb +++ b/recipes/_service.rb @@ -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