Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #85 from greenhouse-org/raise-priority
Browse files Browse the repository at this point in the history
Set priority of consul agent to 'High'
  • Loading branch information
Desmond Rawls authored Feb 23, 2018
2 parents 60a8ea4 + 73538f7 commit 5c21c4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions jobs/consul_agent_windows/spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ templates:
confab.json.erb: confab.json
consul_link.json.erb: consul_link.json
pre-start.ps1.erb: bin/pre-start.ps1
post-start.ps1.erb: bin/post-start.ps1

packages:
- consul-windows
Expand Down
6 changes: 6 additions & 0 deletions jobs/consul_agent_windows/templates/post-start.ps1.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$ErrorActionPreference = "Stop";
trap {
$host.SetShouldExit(1)
}

(Get-Process -Name consul).PriorityClass='High'

0 comments on commit 5c21c4e

Please sign in to comment.