eB Services (sub-services) do not shut down properly when the eB Service Manager shuts down or resta


 

Product

  
 Applies To 
  
 Product(s):Assetwise eB Service Manager 
 Version(s):16.x.xx
 Environment: N/A
 Area: Service
 Subarea: 
 Original Author:Dennis Chan, Bentley Product Advantage Team

Problem Description:

eB Services (sub-services) do not shut down properly when the eB Service Manager shuts down or restarts

 

Cause:

Known issue, happens intermittently, cause unknown. Defect 814595.

Solution:

The Development team has provided the following feedback:

 

You could use a PS script function of the form

function RestarteBServices ([int]$Seconds = 30) {

    Write-Host "Restarting eB Service Manager so server information can be refreshed..." -ForegroundColor Yellow

# Due to _workitems/edit/814595 we'll kill the service manager and it's children to reliable and force-ably shut down eB

    TASKKILL /IM 'eb.Service.Manager.exe' /T /F

    #wait a few seconds for the services to fully shutdown

    Start-Sleep -Seconds 5

    #stop_service  -DisplayName "eB Service Manager" -WarningAction SilentlyContinue

    Start-Service -DisplayName "eB Service Manager" -WarningAction SilentlyContinue

    Write-Host "Waiting for a number of seconds for eB child services enough time to start up..." -ForegroundColor Yellow

    Start-Sleep -Seconds $Seconds

    Write-Host "Wait completed. Continuing."

}

Workaround:

N/A