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

Version Path
appstats-0.20.11 lib/daemons/appstats_log_collector_ctl
appstats-0.20.10 lib/daemons/appstats_log_collector_ctl
appstats-0.20.9 lib/daemons/appstats_log_collector_ctl
appstats-0.20.8 lib/daemons/appstats_log_collector_ctl
appstats-0.20.7 lib/daemons/appstats_log_collector_ctl
appstats-0.20.6 lib/daemons/appstats_log_collector_ctl
appstats-0.20.2 lib/daemons/appstats_log_collector_ctl
appstats-0.20.1 lib/daemons/appstats_log_collector_ctl
appstats-0.20.0 lib/daemons/appstats_log_collector_ctl
appstats-0.19.7 lib/daemons/appstats_log_collector_ctl
appstats-0.19.6 lib/daemons/appstats_log_collector_ctl
appstats-0.19.2 lib/daemons/appstats_log_collector_ctl
appstats-0.19.1 lib/daemons/appstats_log_collector_ctl
appstats-0.19.0 lib/daemons/appstats_log_collector_ctl
appstats-0.18.0 lib/daemons/appstats_log_collector_ctl
appstats-0.17.5 lib/daemons/appstats_log_collector_ctl
appstats-0.17.4 lib/daemons/appstats_log_collector_ctl
appstats-0.17.3 lib/daemons/appstats_log_collector_ctl
appstats-0.17.2 lib/daemons/appstats_log_collector_ctl
appstats-0.17.1 lib/daemons/appstats_log_collector_ctl