Skip to content

Commit

Permalink
Code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-platt committed Nov 15, 2023
1 parent 43e8273 commit 9f0e91c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/configure_blaise_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ steps:
inputs:
filePath: '$(Agent.BuildDirectory)/s/scripts/Blaise/update_blaise_license.ps1'
arguments: '-BLAISE_LICENSE_KEY ${{parameters.BlaiseLicenseKey}} -BLAISE_ACTIVATION_CODE ${{parameters.BlaiseActivationKey}}'

- task: PowerShell@2
displayName: Set Service Recovery Options
inputs:
targetType: 'inline'
script: |
$serviceName = $parameters.Blaise_Service
# Recovery options: restart service after 1st, 2nd, and 3rd failures
$command = "sc.exe failure $serviceName reset= 0 actions= restart/1000"
$command = "sc.exe failure $serviceName reset=0 actions= restart/1000"
Invoke-Expression $command
enabled: true

0 comments on commit 9f0e91c

Please sign in to comment.