require 'drb' require 'dbi' module DBI; include DRbUndumped;end require 'iowa/DbPool' require 'kansas' exit! if (fork) Process.setsid if (child_pid = fork) puts "PID #{child_pid}" exit! end pool = Iowa::DbPool.new('VENDOR','localhost','DATABASE','USER','PASSWORD',2,60) {|dbh| ksdbh = KSDatabase.new(dbh) ksdbh.map_all_tables ksdbh } File.unlink('/var/run/dbpool/br_pool.sock') if FileTest.exist? '/var/run/dbpool/br_pool.sock' DRb.start_service('drbunix://var/run/dbpool/br_pool.sock',pool) DRb.thread.join