Added java

This commit is contained in:
capone212
2016-05-09 17:27:01 +03:00
parent 23c5b584a4
commit e616e5446d

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" || e.ctx.Driver == "raw_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,