Skip to content

Commit

Permalink
Add service dependency on wmiApSrv
Browse files Browse the repository at this point in the history
This appears to fix service startup issues on certain systems, eg #637

Signed-off-by: Calle Pettersson <[email protected]>
  • Loading branch information
carlpett committed Nov 1, 2020
1 parent 637fc24 commit 600e30e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions installer/windows_exporter.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
</File>
<ServiceInstall Id="InstallExporterService" Name="windows_exporter" DisplayName="windows_exporter" Description="Exports Prometheus metrics from WMI queries" ErrorControl="normal" Start="auto" Type="ownProcess" Arguments="--log.format logger:eventlog?name=windows_exporter [CollectorsFlag] [ListenFlag] [MetricsPathFlag] [TextfileDirFlag] [ExtraFlags]">
<util:ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="restart" RestartServiceDelayInSeconds="5" />
<ServiceDependency Id="wmiApSrv" />
</ServiceInstall>
<ServiceControl Id="ServiceStateControl" Name="windows_exporter" Remove="uninstall" Start="install" Stop="both" />
<util:EventSource Log="Application" Name="windows_exporter" EventMessageFile="%SystemRoot%\System32\EventCreate.exe" />
Expand Down

0 comments on commit 600e30e

Please sign in to comment.