11.19 RestartServices

Use this Knowledge Script to stop and restart Windows services. Enter the services you want to stop and restart as a comma-separated list.

Enable the Restart dependent services? parameter to restart services that depend on the ones you stopped. By default, this script restarts dependent services.

11.19.1 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Event severity -- Job failure

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the RestartServices job fails. The default is 10 (red event indicator).

Severity Configuration

Minimum event severity for Action

Set the minimum severity level, from 1 to 40, for an event that triggers this Action. The default is 1.

Maximum event severity for Action

Set the maximum severity level, from 1 to 40, for an event that triggers this Action. The default is 40.

Action

List of services

Provide a comma-separated list of the services you want to stop and restart.

Service start/stop delay

Set the number of seconds to wait between stopping and restarting a service. The default is 30.

Restart dependent services?

Select Yes to restart services that depend on the ones you stopped. The default is Yes.

For example, if you stop the MSSQLSERVER service, the dependent service SQLSERVERAGENT is also stopped. If you select Yes, the MSSQLSERVER service will be restarted, and then the SQLSERVERAGENT service will also be restated.

If you deselect this check box, any dependent services of the service you specified are stopped and not restarted.