#!/usr/bin/env ruby require 'opener/core' require 'opener/daemons' switcher = Opener::Core::ResourceSwitcher.new controller = Opener::Daemons::Controller.new( :name => 'opener-opinion-detector', :exec_path => File.expand_path('../../exec/opinion-detector.rb', __FILE__) ) switcher.bind(controller.parser.parser) controller.run