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 <hayashi@clear-code.com>
- Loading branch information