Sha256: bdf56532107d3ac056bd43e882134694b50449b3bb55692a9c5bf9c37f2ff416
Contents?: true
Size: 785 Bytes
Versions: 6
Compression:
Stored size: 785 Bytes
Contents
#!/usr/bin/env ruby # # Created on 2011-5-12. # Copyright (c) 2011. All rights reserved. # require 'rubygems' require 'daemons' require File.expand_path(File.dirname(__FILE__) + "/../lib/noda") KCODE='s' options = { :dir_mode => :script, :dir => '/var/run/noda', :multiple => true, :ontop => false, :mode => :exec, :backtrace => true, :monitor => true } require "socket" ip=TCPSocket.gethostbyname(Socket::gethostname).last STDOUT.puts " connect to job_server at druby://#{ip}:10001" STDOUT.puts " job_worekr working at druby://#{ip}:10101" Daemons.run_proc("job_worker",options){ w=Noda::JobWorker.new("#{ip}", "10001") t = DRb.start_service("druby://#{ip}:10101",w) w.start }
Version data entries
6 entries across 6 versions & 1 rubygems