def run
      trap(:CHLD) { awake }
      SIGNALS.each { |signal| trap(signal) { SIGNAL_QUEUE << signal ; awake } }
      @socket.close_on_exec = true
      write_procline('starting')

      config = Resqued::Config.new(@config_paths)
      set_default_resque_logger
      config.before_fork(info)
      report_to_master("RUNNING")

      write_procline('running')
      init_workers(config)
      exit_signal = run_workers_run

      write_procline('shutdown')
      burn_down_workers(exit_signal || :QUIT)
    end
def run
      trap(:CHLD) { awake }
      SIGNALS.each { |signal| trap(signal) { SIGNAL_QUEUE << signal ; awake } }
      @socket.close_on_exec = true
      write_procline('starting')

      config = Resqued::Config.new(@config_paths)
      set_default_resque_logger
      config.before_fork(info)
      report_to_master("RUNNING")

      write_procline('running')
      init_workers(config)
      exit_signal = run_workers_run

      write_procline('shutdown')
      burn_down_workers(exit_signal || :QUIT)
    end
Public: Run the main loop.