1. Service Startup
http://msdn.microsoft.com/en-us/library/ms685990(VS.85).aspx
2. A way to prolong start time limit of Windows services in Service Control Manager
When a service fails to send a 'service started' message to the Service Control Manager within the time-out period, the Service Control Manager terminates the service and logs Event ID 7000 to the System event log.
NOTE: The default timeout period is normally 30,000 milliseconds.
I have scripted SvcTimeOut.bat to alter the time that the Service Control Manager wait for each starting service.
The syntax for using SvcTimeOut.bat is:
call SvcTimeOut TimeOutMilliseconds
Where TimeOutMilliseconds is the number of milliseconds that the Service Control Manager should wa

本文总结了Windows服务的启动超时问题,介绍了如何使用Service Control Manager延长服务启动时间限制,并提供了一个批处理文件SvcTimeOut.bat来调整超时值。此外,还讨论了在服务的"OnStart"方法中创建初始化线程来处理耗时启动任务的策略,以避免30秒的时间限制。
最低0.47元/天 解锁文章
7301

被折叠的 条评论
为什么被折叠?



