Sha256: 330d6189c5671699f1d7d3a39f4dfa0369d39c79e83def6988eb8a7f22e6b430
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
module Daikon class Daemon def self.start Daemons.run_proc('daikon') do if ARGV.include?("run") logger = Logger.new(STDOUT) else logger = Logger.new("/tmp/radish.log") end config = Daikon::Configuration.new(ARGV) client = Daikon::Client.new(config, logger) count = 0 logger.info "spawn monitor watcher" loop do client.fetch_commands if count % 5 == 4 client.send_info end if count % 10 == 9 client.rotate_monitor end count += 1 sleep 1 end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
daikon-0.0.0 | lib/daikon/daemon.rb |