Fix fluentd launch option

This commit is contained in:
uu59 2014-07-08 18:18:01 +09:00
parent 5063a68160
commit 6498ad34ff

View File

@ -53,12 +53,16 @@ class Fluentd
end
def validate_fluentd_options
system("bundle exec fluentd --dry-run #{options_to_argv}")
Bundler.with_clean_env do
system("fluentd --dry-run #{options_to_argv}")
end
end
def actual_start
return unless validate_fluentd_options
spawn("bundle exec fluentd #{options_to_argv}")
Bundler.with_clean_env do
spawn("fluentd #{options_to_argv}")
end
wait_starting
end