Can the time windows gives a service to shut down before it kills the service be increased?
Yes, the following information comes from the Microsoft URL : http://support.microsoft.com/kb/146092
To specify the wait time, do the following:
- Start Registry Editor (Regedt32.exe) and locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:
SYSTEMCurrentControlSetControl - On the Edit menu, click Add Value.
- Enter the following:
Value Name: WaitToKillServiceTimeout
Data Type: REG_SZ
String:<In milli-seconds; default is 20,000>
NOTE: Try not to increase the shut-down time to high. Consider the entire shutdown time and if you have a UPS and how much time you have to shutdown before the ups looses power. - Click OK and then quit Registry Editor.
- Shut down, and then restart Windows.