Merge pull request #1159 from capone212/master

Enable consul script checks for raw_exec driver
This commit is contained in:
Diptanu Choudhury 2016-05-09 08:28:03 -07:00
commit 6cdc36d388

View file

@ -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,