I seem to remember SelfService had an example that did this sort of thing.
Basically it is just an exe, with a window with a NetWebClient that fetches a page from the server every so often. If it fails it kills the server task and restarts it. There are plenty of "off the shelf" exe's that do this sort of thing as well.
OddJob is useful for the external stopping of the task, or use some windows API calls.
I also put GPF Reporter in my web server apps - then if they GPF they automatically restart.
cheers
Bruce