Increase windows service startup timeout

Increasing service startup timeout can be done in two ways:
1. With a registry editor:
Open the Control key:

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control]

Create a new DWORD value: 
ServicesPipeTimeout and set it to 30000

2. In a code (assume you use .NET based environment):
protected override void OnStart()
{
  ReqeustAdditionalTime(50000);
 
/* Rest of the code */
}

Post a Comment

Previous Post Next Post