Skip to main content

Task Service - Restart Service​

The Restart service Task stops a running Windows service on the Server computer or on a remote computer, waits up to 3 minutes for it to stop, and then starts it again. A service that is not running is started.

Restart service tab, with the Credential and the service settings

The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.

Restart service tab​

Credentials

The Credential the Task runs as to control a service on a remote computer. It is used only with Remote. Click the settings button to open Manage credentials; see Credentials.

Service

  • Local (default): the service runs on the Server computer
  • Remote: the service runs on another computer
  • Hostname: the name of the remote computer. Available with Remote
  • Service name: the name of the service to restart. Type it, or click the refresh button to fill the list with the services of the computer. Host name and service name may contain Variables

Output and errors​

The output says the service was successfully started. If the service does not stop within 3 minutes, the Task fails.

warning

After starting the service, the Task waits until it runs, without a time limit of its own. Set a time limit on the TimeOut tab.