Sha256: 735661d9d94cea0f4677cc7e8dcffe266d61a77f225b8be26169b1cee7914c9a
Contents?: true
Size: 594 Bytes
Versions: 19
Compression:
Stored size: 594 Bytes
Contents
module Invoker # power is really a stupid pun on pow. module Power class Powerup def self.fork_and_start powerup = new() fork { powerup.run } end def run require "invoker/power/power" EM.epoll EM.run { trap("TERM") { stop } trap("INT") { stop } if Invoker.darwin? DNS.new.run(listen: DNS.server_ports) end Balancer.run } end def stop Invoker::Logger.puts "Terminating Proxy/Server" EventMachine.stop end end end end
Version data entries
19 entries across 19 versions & 3 rubygems