Why windows service not start automatic after windows start

纵然是瞬间 提交于 2019-12-20 07:24:31

问题


Why windows service not start automatic after windows start.

I set service installer property start type to automatic.

Is there other property which need to be set?

Logon for service is local system account. And service can be started manually every time.


回答1:


This happens most often when a resource needed by your service is not available when Windows tries to start it. Please review what your service needs to operate and ensure that you setup a dependency for each resource required. For example, if your service uses the network, try making it dependent on the "Workstation" service (named "LanmanWorkstation").

If you are in the post-Vista world, you can also set the startup type to "Automatic Delayed" to have Windows delay the starting of your service by about a minute. This is usually enough time for all the important/core services to establish themselves.




回答2:


Check in windows services settings. Maybe you didn't reinstall service after changing start type?



来源:https://stackoverflow.com/questions/12368099/why-windows-service-not-start-automatic-after-windows-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!