Chamindac.vsts.release.task.restart-win-serviceRelease task that enable you to restart windows service with all the dependant services. Task requires one mandatory parameter Service Name. For this parameter Service Name or Service Display name can be provided. Once run it will stop all dependent services that are running currently, and restart the main service, then start the dependent services stopped earlier. The dependent services that were not running when the restart request made, will not be started, so that the system services state will remain same after restart service script run. DocumentationPlease check the Get started Known IssuesIf release agent is running with user such as NetworService, error could occur. For example restarting w3svc could fail with "Service 'World Wide Web Publishing Service (w3svc)' cannot be stopped due to the following error: Cannot open w3svc service on computer '.'". ) |