diff --git a/client/driver/executor/executor.go b/client/driver/executor/executor.go index ce36c5e4e..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" { + 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,