Configure SCM to restart our service if it crashes

This commit is contained in:
Cameron Gutman 2020-08-29 22:43:41 -07:00
parent 8590a0813b
commit 36ea86faaa
2 changed files with 2 additions and 1 deletions

@ -1 +1 @@
Subproject commit d2b927c7b1bb04cdfeb5c7715ee784d01cad7b78 Subproject commit 4ab9599679d4948a0e6e14d445ed8291c9c57483

View File

@ -70,6 +70,7 @@
ErrorControl="ignore" ErrorControl="ignore"
Interactive="no"> Interactive="no">
<ServiceConfig DelayedAutoStart="no" OnInstall="yes" OnReinstall="yes" ServiceSid="unrestricted"/> <ServiceConfig DelayedAutoStart="no" OnInstall="yes" OnReinstall="yes" ServiceSid="unrestricted"/>
<util:ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="restart" ResetPeriodInDays="1" RestartServiceDelayInSeconds="10"/>
</ServiceInstall> </ServiceInstall>
<ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="MISS" Wait="yes" /> <ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="MISS" Wait="yes" />
</Component> </Component>