Skip to content

Commit

Permalink
Merge pull request #562 from jvanbrunschot/feature/bugfix-restart-ser…
Browse files Browse the repository at this point in the history
…vice

remove unnecessary restart using Exec
  • Loading branch information
albertvaka committed Sep 19, 2019
2 parents 6866645 + 3a95104 commit ab4cbce
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions manifests/windows/agent6.pp
Expand Up @@ -38,11 +38,6 @@
install_options => ['/quiet', {'APIKEY' => $api_key, 'HOSTNAME' => $hostname, 'TAGS' => $tags}]
}

exec { 'DatadogRestart':
command => "& 'C:/Program Files/Datadog/Datadog Agent/embedded/agent.exe' restart-service",
provider => powershell
}

service { $service_name:
ensure => $service_ensure,
enable => $service_enable,
Expand Down

0 comments on commit ab4cbce

Please sign in to comment.