开发者

Windows services

I have a windows application and I need to change it into a windows service, How can I check whether the windows service is running or not without using any external service to keep a check on the main service.

Is there any way to check it within the main service as I have tried work on开发者_如何学Python it but if the windows service is stopped then there is no way I can check on it.

Do I have to implement the thread(keep alive thread) for this, if so then how to do it?


If your main service is not running, how can it check anything?

You have to have a second monitoring service of some kind.


Have a look at

  • How can I verify if a Windows Service is running
  • Detect the Status of a Windows Service
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜