Skip to content

Commit

Permalink
Add a dummy action_reload for Consul on windows.
Browse files Browse the repository at this point in the history
This addresses #295; because the nssm manager does not support the
concept of reloading this is going to be no-op action that we're simply
going to warn about in the Chef logs.
  • Loading branch information
John Bellone committed Mar 17, 2016
1 parent 37bc6ae commit 8fc21b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/consul_service_windows.rb
Expand Up @@ -64,6 +64,10 @@ def action_enable
end
end

def action_reload
Chef::Log.info 'The service provider for Consul on Windows does not support reload!'
end

def action_restart
batch 'Restart consul' do
code "#{nssm_exe} restart consul"
Expand Down

0 comments on commit 8fc21b8

Please sign in to comment.