Skip to content

Commit

Permalink
Update fluent-package/templates/usr/sbin/fluentd.erb
Browse files Browse the repository at this point in the history
Co-authored-by: Daijiro Fukuda <fukuda@clear-code.com>
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
  • Loading branch information
kenhys and daipom committed Jun 28, 2024
1 parent 3d96430 commit aee1135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluent-package/templates/usr/sbin/fluentd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end
if RUBY_PLATFORM =~ /linux/
prevent_duplicate_launch = system("systemctl", "is-active", "fluentd", out: IO::NULL)
if prevent_duplicate_launch
unless ARGV.include?("-c") or ARGV.include?("--config") or ARGV.include?("--dry-run")
if ["-c", "--config", "--dry-run"].none? {|allowing_opt| ARGV.include? allowing_opt}
puts("Error: Can't start duplicate Fluentd instance with the default config.")
if ARGV.include?("-v")
puts("To take the version, please use '--version', not '-v' ('--verbose').")
Expand Down

0 comments on commit aee1135

Please sign in to comment.