Add optional bare-mode boolean flag to Supervisor's node configuration

When omitted, the node inherits the Supervisor's bare-mode
status. When true/false, the new Zeek node will enable/disable bare
mode, respectively. It continues to load any scripts passed at the
command line and in the additional scripts list already provided in
the node configuration.

Includes testcase.
This commit is contained in:
Christian Kreibich 2021-07-07 15:17:39 -07:00
parent efaa9ec3be
commit 7bee79b400
7 changed files with 108 additions and 0 deletions

View file

@ -42,6 +42,9 @@ export {
stdout_file: string &optional;
## The filename/path to which the node's stderr will be redirected.
stderr_file: string &optional;
## Whether to start the node in bare mode. When left out, the node
## inherits the bare-mode status the supervisor itself runs with.
bare_mode: bool &optional;
## Additional script filenames/paths that the node should load.
scripts: vector of string &default = vector();
## Environment variables to define in the supervised node.