Skip to content

Commit

Permalink
Merge pull request #56 from spuder/fix/restart
Browse files Browse the repository at this point in the history
Restarts tentacle service when registering
  • Loading branch information
brentm5 authored Aug 17, 2016
2 parents 8df42f4 + 9e111a5 commit 4f788e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/tentacle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
# This is sort of a hack, you need to specify the config_path on register if it is not default
# The other option is to read the registry key but the helpers are not available in 12.4.1
not_if { tentacle_exists?(server, api_key, tentacle_thumbprint(config_path)) }
notifies :restart, "windows_service[#{service_name}]", :delayed
end

new_resource.updated_by_last_action(actions_updated?([register_instance]))
Expand Down

0 comments on commit 4f788e2

Please sign in to comment.