-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chumask: fix issue where it only works with standalone worker (#4836)
**Which issue(s) this PR fixes**: * Fixes #3671 **What this PR does / why we need it**: Fix #3671 (88a7260) After #3671, the value of `chumask` passed to ServerEngine was always `nil`. The `chumask` value was being used only when standalone. It appears to be unintentional. This fixes it. * By default, `0` as `chumask` is passed to ServerEngine. * If specifying `--umask` option, that value is passed. * This `chumask` value is applied when using `daemonize`. * When not using `daemonize`, the value is not used. * This is the specification of ServerEngine. Specification change: (Just undo the specification that #3671 unintentionally changed.) * This changes the default `umask` when using `daemonize`. * fluent-package (RPM/DEB), for example. * Before: system default (`nil` for ServerEngine) * After: `0` **Docs Changes**: Not needed. (There is not enough information on https://docs.fluentd.org/deployment/command-line-option. It would be good to add more information.) **Release Note**: * Fixed a bug where the default `umask` was not set to `0` when using `--daemon` (td-agent, fluent-package) since v1.14.6. * `--umask` command line option: Fixed so that it is applied when Fluentd runs with `--daemon` (fluent-package) as well as when Fluentd runs with `--no-supervisor`. Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
- Loading branch information
Showing
3 changed files
with
86 additions
and
44 deletions.
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
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