Make a service monitor and restart process

Posted by Andrej on Stack Overflow See other posts from Stack Overflow or by Andrej
Published on 2010-03-22T22:41:59Z Indexed on 2010/03/22 23:11 UTC
Read the original article Hit count: 651

Filed under:
|

Hi,

i'm making an app that needs to be up and running at all times. (24/7) I'm not very expirienced with services, but I read on the internet that services can be made uncolasble by setting their "onclose" property to false.

I have got the service monitoring my app, and the service can't be closed directly from the task manager services window... but, when I click "go to process" task manager leads me to the process the service spawned. From there I can close the process and instantly close the service. Since I don't have much expirience with services i'm wondering, is this behavior normal? If not, how to make the service unstopable?

© Stack Overflow or respective owner

Related posts about c#

Related posts about service