~brightbox/brightbox/domtrix-packaging

« back to all changes in this revision

Viewing changes to bin/domtrix-lb-worker

  • Committer: Neil Wilson
  • Date: 2010-11-30 13:47:43 UTC
  • Revision ID: git-v1:e1201b75b8107fdf0ce1152cb01df41772f309e5
Initial commit of load balancer scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env ruby
 
2
#    Brightbox - Machine Message consumer for load balancers
 
3
#    Copyright (C) 2010, Brightbox Systems
 
4
#    Author: Neil Wilson
 
5
#
 
6
#  Listen on a queue and handle load balancer configure requests
 
7
 
 
8
begin
 
9
  require 'domtrix_lb'
 
10
rescue LoadError
 
11
  require File.join(File.dirname(__FILE__),'..', 'relative-env')
 
12
  retry
 
13
end
 
14
require 'domtrix_worker'
 
15
 
 
16
# Command redirector table
 
17
app = WorkerManager.new(
 
18
  'configure' => LbConfigureCommand
 
19
)
 
20
app.run