installer/windows: add service dependency for storagenode
When system restarts, local dns resolver may not be ready before our application starts up. Adding a dependency for dns service will help prevent dns lookup not available error for storagenode on system reboot. Change-Id: Ie4be2813736e377df551fd8190f2247d3ae05ccd
This commit is contained in:
parent
75355547c2
commit
f151a0b9e1
@ -39,7 +39,11 @@
|
||||
Password="[SERVICEPASSWORD]"
|
||||
ErrorControl="normal"
|
||||
Arguments="run --config-dir "[INSTALLFOLDER]\""
|
||||
/>
|
||||
>
|
||||
<ServiceDependency Id="LanmanServer"/>
|
||||
<ServiceDependency Id="Dnscache"/>
|
||||
|
||||
</ServiceInstall>
|
||||
<ServiceControl Id="StoragenodeStartService" Start="install" Stop="both" Remove="both" Name="storagenode" Wait="yes" />
|
||||
|
||||
<fire:FirewallException Id="StoragenodePort" Name="storagenode.exe" Port="28967" Scope="any"/>
|
||||
@ -67,6 +71,8 @@
|
||||
ThirdFailureActionType="runCommand"
|
||||
ProgramCommandLine="cmd /c "(echo %date% %time% recovery triggered to execute in 3 minutes && timeout 180 >NUL && echo %date% %time% recovery command executed: && copy /y "[INSTALLFOLDER]storagenode-updater.old.exe" "[INSTALLFOLDER]storagenode-updater.exe" && net start storagenode-updater) >> "[INSTALLFOLDER]storagenode-updater-recovery.log" 2>&1""
|
||||
/>
|
||||
<ServiceDependency Id="LanmanServer"/>
|
||||
<ServiceDependency Id="Dnscache"/>
|
||||
</ServiceInstall>
|
||||
<ServiceControl Id="StoragenodeUpdaterStartService" Start="install" Stop="both" Remove="both" Name="storagenode-updater" Wait="yes" />
|
||||
</Component>
|
||||
|
Loading…
Reference in New Issue
Block a user