# File lib/fluent/supervisor.rb, line 60 def initialize(opt) @config_path = opt[:config_path] @log_path = opt[:log_path] @log_level = opt[:log_level] @daemonize = opt[:daemonize] @chgroup = opt[:chgroup] @chuser = opt[:chuser] @libs = opt[:libs] @plugin_dirs = opt[:plugin_dirs] @inline_config = opt[:inline_config] @suppress_interval = opt[:suppress_interval] @log = LoggerInitializer.new(@log_path, @log_level, @chuser, @chgroup) @finished = false @main_pid = nil end
# File lib/fluent/supervisor.rb, line 77 def start require 'fluent/load' @log.init start_daemonize if @daemonize install_supervisor_signal_handlers until @finished supervise do read_config change_privilege init_engine install_main_process_signal_handlers run_configure finish_daemonize if @daemonize run_engine exit 0 end $log.error "fluentd main process died unexpectedly. restarting." unless @finished end end
Generated with the Darkfish Rdoc Generator 2.