test/daemon1.rb in rubydns-0.3.4 vs test/daemon1.rb in rubydns-0.4.0

- old
+ new

@@ -32,12 +32,16 @@ [:udp, "0.0.0.0", 5300] ] # Very simple XMLRPC daemon class TestDaemon < RExec::Daemon::Base - @@var_directory = "/tmp/ruby-test/var" - - def self.run + # You can specify a specific directory to use for run-time information (pid, logs, etc): + # @@var_directory = "/tmp/ruby-test/var" + + Name = Resolv::DNS::Name + IN = Resolv::DNS::Resource::IN + + def self.run $stderr.sync = true $R = Resolv::DNS.new RubyDNS::run_server(:listen => INTERFACES) do