Skip to content

Commit

Permalink
Sysconfig triggers init.d template not the service
Browse files Browse the repository at this point in the history
sysconfig needs to trigger init instead of the service - calling
immediately twice creates issues with the service already being
restarted
  • Loading branch information
goncalopereira committed Oct 15, 2014
1 parent 6204a44 commit b8da19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b8da19a

Please sign in to comment.