Skip to content

Commit

Permalink
Merge pull request #1577 from fluent/validate-standalone-worker-num
Browse files Browse the repository at this point in the history
Validate workers options on standalone mode
  • Loading branch information
repeatedly authored May 22, 2017
2 parents 155ceac + 70e7d8e commit c11a3d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fluent/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ def run_worker
read_config
set_system_config

if @standalone_worker && @workers != 1
raise Fluent::ConfigError, "invalid number of workers (must be 1 or unspecified) with --no-supervisor: #{@workers}"
end

install_main_process_signal_handlers

# This is the only log messsage for @standalone_worker
Expand Down

0 comments on commit c11a3d7

Please sign in to comment.