Sha256: be50843f261388c9d66f84321f902deb1662af40ff55b04223ceea0f50137225
Contents?: true
Size: 706 Bytes
Versions: 82
Compression:
Stored size: 706 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require "daemons" require 'yaml' require 'erb' gem 'activesupport', '>=3.0.0.beta4' gem 'activerecord', '>=3.0.0.beta4' require 'active_support' require 'active_record' require File.dirname(__FILE__) + "/../appstats.rb" # For some reason, ActiveSupport 3.0.0 doesn't load. # Load needed extension directly for now. require "active_support/core_ext/object" require "active_support/core_ext/hash" options = YAML.load( ERB.new( IO.read( File.dirname(__FILE__) + "/../../config/daemons.yml" )).result).with_indifferent_access options[:dir_mode] = options[:dir_mode].to_sym Daemons.run File.dirname(__FILE__) + "/appstats_log_collector.rb", options
Version data entries
82 entries across 82 versions & 1 rubygems