#!/usr/bin/ruby

foreman_root = '/usr/share/foreman'
Dir.chdir(foreman_root)
require File.expand_path('./config/application', foreman_root)
Dynflow::Rails::Daemon.new.run_background(ARGV.last, :foreman_root => foreman_root)
