Sha256: 60f6bcd03669cda5839b40b0770ee07eac2215e27dc76024e3f53ddb096a2c38
Contents?: true
Size: 802 Bytes
Versions: 2
Compression:
Stored size: 802 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', :multiple => true, :ontop => false, :mode => :exec, :backtrace => true, :monitor => true } require "socket" ip==TCPSocket.gethostbyname(Socket::gethostname).last STDOUT.puts " job_monitor at http://#{ip}:10080" STDOUT.puts " job_server at druby://#{ip}:10001" Daemons.run_proc("job_server",options){ m=Noda::JobMonitor.new("#{ip}","10080","druby://#{ip}:10001") m.start_monitor s=Noda::JobServer.new("#{ip}", "10001") s.start_service }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
noda-0.0.6 | bin/noda_job_server |
noda-0.0.5.1 | bin/noda_job_server |