diff --git a/internal/impl/io/input_subprocess.go b/internal/impl/io/input_subprocess.go index f7bc6cd33..4bca3cbb2 100644 --- a/internal/impl/io/input_subprocess.go +++ b/internal/impl/io/input_subprocess.go @@ -27,7 +27,7 @@ func subprocInputSpec() *service.ConfigSpec { Categories("Utility"). Summary("Executes a command, runs it as a subprocess, and consumes messages from it over stdout."). Description(` -Messages are consumed according to a specified codec. The command is executed once and if it terminates the input also closes down gracefully. Alternatively, the field `+"`restart_on_close` can be set to `true`"+` in order to have Bento re-execute the command each time it stops. +Messages are consumed according to a specified codec. The command is executed once and if it terminates the input also closes down gracefully. Alternatively, the field `+"`restart_on_exit` can be set to `true`"+` in order to have Bento re-execute the command each time it stops. The field `+"`max_buffer`"+` defines the maximum message size able to be read from the subprocess. This value should be set significantly above the real expected maximum message size. diff --git a/website/docs/components/inputs/subprocess.md b/website/docs/components/inputs/subprocess.md index af5584a94..264ad7727 100644 --- a/website/docs/components/inputs/subprocess.md +++ b/website/docs/components/inputs/subprocess.md @@ -57,7 +57,7 @@ input: -Messages are consumed according to a specified codec. The command is executed once and if it terminates the input also closes down gracefully. Alternatively, the field `restart_on_close` can be set to `true` in order to have Bento re-execute the command each time it stops. +Messages are consumed according to a specified codec. The command is executed once and if it terminates the input also closes down gracefully. Alternatively, the field `restart_on_exit` can be set to `true` in order to have Bento re-execute the command each time it stops. The field `max_buffer` defines the maximum message size able to be read from the subprocess. This value should be set significantly above the real expected maximum message size.