Skip to content

Commit

Permalink
Add a WMI dependency for the DatadogAgent service
Browse files Browse the repository at this point in the history
This is to prevent the case where the Agent can't start on a reboot
  • Loading branch information
conorbranagan committed Jan 28, 2014
1 parent ef2a41e commit 5877fdf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packaging/datadog-agent/win32/wix/files.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!-- Add the service install/control entries to mybinary.exe -->
<xsl:template match="wix:Component[wix:File[@Source='$(var.InstallFilesBins)\ddagent.exe']]">
<xsl:copy>
<xsl:apply-templates select="node() | @*" />
<wix:ServiceInstall Id="ServiceInstaller" DisplayName="Datadog Agent" Description="Send metrics to Datadog" Name="DatadogAgent" ErrorControl="ignore" Start="auto" Type="ownProcess" Vital="yes" Interactive="no" Account="LocalSystem" />
<wix:ServiceInstall Id="ServiceInstaller" DisplayName="Datadog Agent" Description="Send metrics to Datadog" Name="DatadogAgent" ErrorControl="ignore" Start="auto" Type="ownProcess" Vital="yes" Interactive="no" Account="LocalSystem">
<wix:ServiceDependency Id="winmgmt" />
</wix:ServiceInstall>
<wix:ServiceControl Id="StartService" Name="DatadogAgent" Start="install" Stop="both" Remove="uninstall" Wait="no" />
</xsl:copy>
</xsl:template>
Expand Down

0 comments on commit 5877fdf

Please sign in to comment.