diff --git a/lib/fluent/command/fluentd.rb b/lib/fluent/command/fluentd.rb index d14d8fece6..a331bc1183 100644 --- a/lib/fluent/command/fluentd.rb +++ b/lib/fluent/command/fluentd.rb @@ -336,7 +336,7 @@ worker = Fluent::Supervisor.new(opts) worker.configure - if opts[:daemonize] + if opts[:daemonize] && opts[:standalone_worker] require 'fluent/daemonizer' args = ARGV.dup i = args.index('--daemon')