Problemy z automatycznym uruchamianiem usług
Migracja; autor Piotr, ostatnia modyfikacja przed importem 2021-09-14T13:29:17.000Z; Problemy-z-automatycznym-uruchamianiem-usług
How to increase the timeout value for the service startup
Additionally, you can change the timeout value for the service startup in the Windows registry:
Launch Windows Registry Editor.
Find the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
Right-click this key and select New > DWORD (32-bit) Value.
A new value namedNew Value #1 appears on the right.
Change the name of this new value to ServicesPipeTimeout.
Right-click the ServicesPipeTimeout value you created, and choose Modify. The Edit DWORD Value window opens.
Change Base to Decimal.
In the Value data field, type the value (in milliseconds) of time allowed for the service to start, and click OK.
In our test environment, we set the value to 240000 ms (4 minutes), and this enabled the service to start correctly.
Finally, restart the machine.
To set up Delayed Start:
Open the Windows Services Console
Locate the Qlik Services
Right-click each service
Choose Properties
In the General tab, select Automatic (Delayed Start) as the Startup type
To allow Delayed Start more time GLOBALLY:
Open Windows Registry: Start -> Run -> regedit.exe
File --> Export --> make a backup of the current registry
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
Right click on the right page ---> New ---> DWORD
call the new DWORD "AutoStartDelay"
Set AutoStartDelay in milliseconds (decimal). E.G. 240000 is 240 seconds.
To allow Delayed Start more time SERVICE BY SERVICE:
Open Windows Registry: Start -> Run -> regedit.exe
File --> Export --> make a backup of the current registry
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<servicename>
To increase the default delay of 120 seconds, right click the registry key and add new key AutoStartDelay (DWORD (32-bit))
Set AutoStartDelay in milliseconds (decimal). E.G. 240000 is 240 seconds.