From b8da19a9195be63766d66fb5f1ea13fd93f60052 Mon Sep 17 00:00:00 2001 From: goncalo Date: Wed, 15 Oct 2014 16:34:13 +0100 Subject: [PATCH] Sysconfig triggers init.d template not the service sysconfig needs to trigger init instead of the service - calling immediately twice creates issues with the service already being restarted --- recipes/_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/_service.rb b/recipes/_service.rb index f9d87e05..e4c93065 100644 --- a/recipes/_service.rb +++ b/recipes/_service.rb @@ -136,7 +136,7 @@ variables( gomaxprocs: node['cpu']['total'] ) - notifies :restart, 'service[consul]', :immediately + notifies :create, 'template[/etc/init.d/consul]', :immediately end template '/etc/init.d/consul' do source 'consul-init.erb'