Added restart service on failure #5277

This commit is contained in:
Jerry (Xinyu Hou) 2016-05-04 08:09:01 -07:00
parent 17c35f53f4
commit fa2a6a2169
1 changed files with 9 additions and 2 deletions

View File

@ -88,7 +88,14 @@
<ServiceInstall <ServiceInstall
Id="ServiceInstall" Name="Synergy" DisplayName="$(var.Name)" Id="ServiceInstall" Name="Synergy" DisplayName="$(var.Name)"
Description="Controls the $(var.Name) foreground processes." Description="Controls the $(var.Name) foreground processes."
Type="ownProcess" Start="auto" ErrorControl="normal" /> Type="ownProcess" Start="auto" ErrorControl="normal">
<util:ServiceConfig
FirstFailureActionType='restart'
SecondFailureActionType='restart'
ThirdFailureActionType='restart'
RestartServiceDelayInSeconds='1'
ResetPeriodInDays='1'/>
</ServiceInstall>
<ServiceControl <ServiceControl
Id="ServiceControl" Name="Synergy" Id="ServiceControl" Name="Synergy"