Checking the fail status of windows service
-
Hi How can we check the failure of windows service programatically. I have a windows service that elapses every 5 minutes and I need to check if the service is failed then restart it automatically in my code. I googled but I couldnt find the Failed Status for the windows service. Any ideas please!
-
Hi How can we check the failure of windows service programatically. I have a windows service that elapses every 5 minutes and I need to check if the service is failed then restart it automatically in my code. I googled but I couldnt find the Failed Status for the windows service. Any ideas please!
-
Hi How can we check the failure of windows service programatically. I have a windows service that elapses every 5 minutes and I need to check if the service is failed then restart it automatically in my code. I googled but I couldnt find the Failed Status for the windows service. Any ideas please!
-
The ServiceController[^] allows you to Start, Stop and check the running status of services.
:Badger:
-
That depends on what "fails" means. I took it to mean "crashes" in which case this will allow the OP to restart the service. If it means something else then no, this probably isn't very helpful. :)
:Badger: