Link to home
Start Free TrialLog in
Avatar of jglazer63
jglazer63

asked on

Auto restart scheduler service when it fails?

I have a fairly critical scheduled job that runs fairly often but I find that once in a while the scheduler service has stopped.  It only needs to be restarted to get it going.  Does anyone have any ideas how to avoid this?  I was thinking on having a scheduled job run on another windows 2000 box that would automatically restart the service on this box but I am not certain how to go about doing that.

Any ideas?
Avatar of oBdA
oBdA

Have you tried the "Recovery" tab in the service's properties yet? You can configure the service to be restarted automatically by the SCM when it fails (note that it will only be restarted if the service actually fails, not if it is shutdown gracefully through services.msc or whatever).
Avatar of jglazer63

ASKER

yes its already set to restart after first, second and subsequent.  Reset fail count after 0 days and restart after 1 minute.  Didn't seem to make it restart though.

ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think we need to aproach this issue at the root. Instead of restarting the service when it fails, we need to first see why it's failing. Could you paste the errors that you see in the event viewer related to the service failure?
could you also paste the SchedLgU.txt here? That might give us some more information.
It can be viewed by going to scheduled tasks-->advanced-->view log.
I no longer have the log.  I'll try to grab if it fails again in the short run.
The srvany approach works.  It happened again and I don't know why.  Please note that you have two "starts" in the "net start" command but that was an easy thing to recognize/fix.

Thanks!