lib/invoker/power/powerup.rb in invoker-1.0.4 vs lib/invoker/power/powerup.rb in invoker-1.1.0
- old
+ new
@@ -6,15 +6,16 @@
powerup = new()
fork { powerup.run }
end
def run
+ require "invoker/power/power"
EM.epoll
EM.run {
trap("TERM") { stop }
trap("INT") { stop }
- DNS.run_dns()
- Balancer.run()
+ DNS.new.run(listen: DNS.server_ports)
+ Balancer.run
}
end
def stop
Invoker::Logger.puts "Terminating Proxy/Server"