From cc246b30d91d8f1c8474cf305b67a53bd6657193 Mon Sep 17 00:00:00 2001 From: capone212 Date: Mon, 9 May 2016 17:27:01 +0300 Subject: [PATCH] Added java --- client/driver/executor/executor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/driver/executor/executor.go b/client/driver/executor/executor.go index 1e06b8d1f..7e4791655 100644 --- a/client/driver/executor/executor.go +++ b/client/driver/executor/executor.go @@ -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,