Open topic with navigation

# RestartService

The `RestartService` action stops a service, waits until the process has stopped, and then starts the service again.

## Example

`a=RestartService&Port=9000`

`a=RestartService&Port=9000&ControlMethod=Process&Timeout=60`

`a=RestartService&Port=41600&ConfigContent=%5BServer%5D%0APort=41400%0A%5BService%5D%0AServicePort=41402%0AServiceControlClients=*.*.*.*%0A%5Bssdp%5D%0AssdpPort=41404`

Before it starts the service, the `RestartService` action first tries to stop the service by using the control method specified in the `ControlMethod` parameter, then by using SCM, then by using a server process.

Note: You must have Windows administrator privileges to use this action.

## Parameters

Parameter | Description | Required
--- | --- | ---
ConfigContent - Deprecated | A replacement configuration to use for the service. |
ControlMethod | The control method to use to start the service. |
Port | The port of the service. | Yes
StopControlMethod | The control method to use to stop the service. |

## Comments

You can also submit this action from Coordinator by specifying the `ControllerUUID` parameter. For more information, refer to the IDOL Site Admin Coordinator Reference.

Related Topics

- AddService
- EditServiceInfo
- FindServices
- GetServices
- RemoveService
- StartService
- StopService

© 2013 - 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm