-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins: exec: exit fluent-bit after oneshot
Exit fluent-bit when the child process of the 'exec' plugin exits in one-shot mode if the new Exit_After_Oneshot plugin option is true. While exiting after the oneshot command is the logical behaviour, doing so by default would change existing behaviour that may affect existing uses, so it's not made the default. Optionally propagate the child process exit code to the exit code of fluent-bit itself if the new plugin option Propagate_Oneshot_Exit_Code is True. This allows fluent-bit to be invoked as a wrapper for a child command. Signed-off-by: Craig Ringer <[email protected]>
- Loading branch information
Showing
2 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters