vendor/bundle/ruby/1.8/gems/emissary-1.3.18/lib/emissary/server.rb
# override Servolux::Server's startup because we don't need threaded here.
# also, we want to enforce exiting on completion of startup's run
override Servolux::Server's startup because we don't need threaded here.
also, we want to enforce exiting on completion of startup's run
override Servolux :: Server ' s startup because we don ' t need threaded here . also we want to enforce exiting on completion of startup ' s run
def startup
      return self unless not running?
      begin
        create_pid_file
        trap_signals
        run
      rescue Exception => e
        Emissary.logger.error "Server '#{$0}': #{e.class.name}: #{e.message}\n\t#{e.backtrace.join("\n\t")}"
      ensure
        delete_pid_file
        shutdown! :hard
      end
      return self
    end
def startup return self unless not running? begin create_pid_file trap_signals run rescue Exception => e Emissary . logger . error "Server '#{$0}': #{e.class.name}: #{e.message}\n\t#{e.backtrace.join("\n\t")}" ensure delete_pid_file shutdown! :hard end return self end
override Servolux::Server's startup because we don't need threaded here.
override Servolux :: Server ' s startup because we don ' t need threaded here .
# if something is caught here, then we can only log it. at this point we are in an # unknown state and can only delete our pid file and #exit!. Attempting to call # our #term method could cause other problems here.