Service Control Task

The Service Control task allows adTempus to start, stop, and monitor system services.

When you configure adTempus to monitor a service, adTempus can detect when the service is stopped (e.g., due to an application failure) and restart the service automatically.

Like all other adTempus tasks, the Service Control Task is executed in the security context of the user account specified for the job. Therefore that user must have the authority to control the service you select, or the task will fail.

Using adTempus to automatically restart a failed service

To automatically detect and restart a failed service, configure the task as follows:

  1. On the Options page select the service you wish to monitor and set the Control Type to "Start the service".

  2. Check the Monitor the service option.

  3. On the Responses page create a new response.

  4. Add the "Service failed or was stopped outside of adTempus" event to the response.

  5. Add a "Control a job or job step" (Job Control) action to the response. Set the Job Control action's Action to take to "Restart the step".

  6. Optionally (but recommended) specify a retry limit for the action so that adTempus does not end up continuously restarting a service that fails repeatedly.

 

Service Control Task Properties

Tasks Overview

Steps Overview