require 'rubygems' require 'daemons' # The Service controller. def start_service begin puts "-------------------------" puts "Starting RabbitHutch #1" Daemons.run(File.dirname(__FILE__) + '/lib/rabbithutch.rb') rescue SystemExit=>e puts e.inspect rescue Exception=>e puts e.inspect end end start_service()