Skip to content

Commit

Permalink
Merge pull request #1159 from capone212/master
Browse files Browse the repository at this point in the history
Enable consul script checks for raw_exec driver
  • Loading branch information
diptanu committed May 9, 2016
2 parents 6a0d3ed + e616e54 commit 902550c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/driver/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@ func (e *UniversalExecutor) createCheck(check *structs.ServiceCheck, checkID str
}, nil
}

if check.Type == structs.ServiceCheckScript && e.ctx.Driver == "exec" {
if check.Type == structs.ServiceCheckScript && (e.ctx.Driver == "exec" ||
e.ctx.Driver == "raw_exec" || e.ctx.Driver == "java") {
return &ExecScriptCheck{
id: checkID,
interval: check.Interval,
Expand Down

0 comments on commit 902550c

Please sign in to comment.