Specify what should happen if a service fails

A service failure isn’t always a major problem, but in some cases it can certainly be a cause for concern. In other cases it is a major problem, particularly with critical services on a server. Windows 2000 enables you to specify what action the system should take if a service does fail. For example, you can direct Windows 2000 to try to restart the service. If the service fails again, you might have Windows 2000 execute a program that emails a notification to you or pages you. In some cases you might even want the system to restart if a service fails.

Windows 2000 lets you specify an action to take for the first, second, and subsequent failures of the service In the preceding example, you might have Windows 2000 try to restart the service on the first failure, send you an email on the second, and restart the system on the third.

Configuring service recovery properties

As explained previously, you can configure a service to take any of four different actions on failure: do nothing, restart the service, execute a file, or restart the system. You set each of these properties through the Recovery page of the service’s property sheet. Here’s how to configure those properties:

  1. Open the Services and Applications branch of the Computer Management console, then open the Services branch.

  2. Double-click the service whose properties you want to set and click the Recovery tab in the service’s property sheet.

  3. Select the desired action for first, second, ...

Get Windows 2000 Quick Fixes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.