The information in this article applies to:
SUMMARYWhen a service is dependendent on other services, the Service Control Manager (SCM) will automatically start the dependencies before starting the dependent service itself. However, during system shutdown, the SCM does not take dependencies into consideration when stopping services. It simply enumerates the list of running services and sends a SERVICE_CONTROL_SHUTDOWN command to all of them. Thus, a service may stop responding or fail because another service it depends upon has already stopped. MORE INFORMATION
To learn more about service dependencies, refer to the Win32 SDK documentation in the latest version of the MSDN Library. Note that the lpDependencies parameter passed to CreateService() and ChangeServiceConfig() is only documented for use in starting services. Q146092 How to Increase Shutdown Time For Services To Close ProperlyThe main purpose for the 20-second shutdown limit is that the shutdown may have occurred due to a power failure and the Uninterruptible Power Supply (UPS) can run out of battery power during shutdown. In addition, this limit improves the overall responsiveness to the user-initiated shutdown. Additional query words: kbDSupport prodnt
Keywords : kbinterop kbKernBase kbNTOS kbWinOS2000 kbService kbSvcMgr kbDSupport |
Last Reviewed: December 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |