9
3
I have a windows service running on a Windows 2003 server. Under the properties option when you right click the service, there is an option to restart the service if it fails. The options available are for the first, second and any subsequent failures.
I tried to use this option to restart the service when not running but it looks like it only restarts the service if the service fails as a result of a failure. The problem i have is that if there is a failure, the service picks this up and shuts down the service 'gracefully'. This means it is not being restarted.
Is there a way i can restart the service regardless of whether it stopped because of a failure or if it stopped gracefullly?
Thanks
It is an application we wrote ourselves. Its not one of the services that come with windows. The problem is that when the program detects a failure it does shutdown but it doesnt shutdown with a failure. Im guessing it is supposed to return an error flag when it shuts down but it probably doesnt. – ziggy – 2011-02-01T10:10:07.070