diff --git a/AutoTx-Updater/Update-Service.ps1 b/AutoTx-Updater/Update-Service.ps1 index cbc62625d5979c478e0d653c0856294c1b3288b2..c1150446a2dec4bb47e14fcc832ebfa8e56f8266 100644 --- a/AutoTx-Updater/Update-Service.ps1 +++ b/AutoTx-Updater/Update-Service.ps1 @@ -25,7 +25,7 @@ $Me = $MyInvocation.MyCommand -replace '.ps1' ### function definitions ##################################################### -function Check-ServiceState([string]$ServiceName) { +function Ensure-ServiceRunning([string]$ServiceName) { $Continue = $True try { $Service = Get-Service $ServiceName -ErrorAction Stop @@ -342,7 +342,7 @@ function Log-Info([string]$Message) { # first check if the service is installed and running at all -Check-ServiceState $ServiceName +Ensure-ServiceRunning $ServiceName $UpdateConfigPath = "$($UpdateSourcePath)\Configs\$($env:COMPUTERNAME)" $UpdateMarkerPath = "$($UpdateSourcePath)\Service\UpdateMarkers"