Service Control Task

The Service Control task allows adTempus to start, stop, and monitor Windows service applications.

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. To avoid running the job under an Administrator account, you can check the Use system context for certain operations option for the Credential Profile that is used for the job.

Using adTempus to Automatically Restart a Failed Service

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

  1. 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.