-
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.
Guard launching duplicated fluentd with same configuration
Before: If you launch multiple Fluentd instance with same configuration file, it causes a disaster with inconsistency processed buffer or pos file. After: Detect fluentd service's main process and fetch FLUENT_CONF. if configuration is same as spawned process, abort it. It can block the following conditions are met: * fluentd is launched via systemd (fluent-package) configuration file is specified via FLUENT_CONF. * manually try to launch fluentd with same configuration file as fluentd user with -c option. Thus running fluentd service and manually try to launch normal user case can't be detected. NOTE: Windows is out of scope in this PR. Signed-off-by: Kentaro Hayashi <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 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