Services self recovered???

Jun 28, 2012 at 2:32 PM
Edited Jun 28, 2012 at 2:35 PM

Hello Mr. Nowak. My name is Matheus, I´m from Brazil and i would like to congratulate you for your excellent job in Managed Services library.

I have an issue and maybe you are able to help.

I need to create a service that, in a certain period of time, raises an event and in this event an external program will be started (like a signal to start some program). I also have to guarantee that the service is self recovered, i mean, if someone (or some program) tries to close my service then it tries to keep alive and doesn't close at all. Or even better, if any kind of external source really closes (finish, or even kill) my service, windows (or my own service) goes there and automaticly start it again.

I already tried to use the events OnServiceExiting and OnServiceStateChanged and it works only from inside callings of my own program.

I hope i was clear enought in my questions.

Thank you for any help you can give me.