Sha256: 321d43d1942fe764bf427b8f18c98364a3f78d5dec2465491dc931e0bfd196cc

Contents?: true

Size: 638 Bytes

Versions: 6

Compression:

Stored size: 638 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'rack'
require 'rack/contrib'
require 'json'
require 'thin'
require ::File.join(::File.dirname(__FILE__),'..','lib/poolparty/monitors/', 'monitor_rack.rb') 


app = Rack::Builder.new do
  use Rack::Reloader, 2
  use Rack::ShowExceptions
  use Rack::Lint
  # use Rack::PostBodyContentTypeParser  #parses json requests to params hash
  run Monitors::MonitorRack.new()
end

if __FILE__ == $0
# at_exit do
  Rack::Handler::Thin.run app, :daemonize=>true, :pid_file=>'/tmp/monitor.pid'
  # Thin::Server.new(app, :daemonize=>true, :pid_file=>'/tmp/monitor.pid').daemonize
# end
else
  run app
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
auser-poolparty-1.1.1 bin/server-monitor.ru
auser-poolparty-1.1.3 bin/server-monitor.ru
auser-poolparty-1.1.4 bin/server-monitor.ru
auser-poolparty-1.1.5 bin/server-monitor.ru
fairchild-poolparty-1.1.3 bin/server-monitor.ru
fairchild-poolparty-1.1.4 bin/server-monitor.ru