lib/invoker/power/powerup.rb in invoker-1.1.0 vs lib/invoker/power/powerup.rb in invoker-1.2.0.pre
- old
+ new
@@ -11,10 +11,12 @@
require "invoker/power/power"
EM.epoll
EM.run {
trap("TERM") { stop }
trap("INT") { stop }
- DNS.new.run(listen: DNS.server_ports)
+ if Invoker.darwin?
+ DNS.new.run(listen: DNS.server_ports)
+ end
Balancer.run
}
end
def stop