Skip to content

Commit

Permalink
Added logging more
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-platt committed Nov 15, 2023
1 parent 5bb7b57 commit 315b644
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/configure_blaise_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ steps:
inputs:
targetType: 'inline'
script: |
$serviceName = $parameters.Blaise_Service
Write-Host "Service Name: $serviceName"
#$serviceName = "BlaiseServices5"
#Write-Host "Service Name: "+ $serviceName
# Recovery options: restart service after 1st, 2nd, and 3rd failures
$command = "sc.exe failure $serviceName reset=0 actions=restart/1000"
Write-Host "Executing command: $command"
$command = "sc.exe failure BlaiseServices5 reset=0 actions=restart/1000"
#Write-Host "Executing command: $command"
try {
Invoke-Expression $command
} catch {
Expand Down

0 comments on commit 315b644

Please sign in to comment.