# File lib/daemons.rb, line 165 def run_proc(app_name, options = {}, &block) options[:app_name] = app_name options[:mode] = :proc options[:proc] = block if [nil, :script].include? options[:dir_mode] options[:dir_mode] = :normal options[:dir] = File.split(__FILE__)[0] end @controller = Controller.new(options, ARGV) @controller.catch_exceptions { @controller.run } # I don't think anybody will ever use @group, as this location should not be reached under non-error conditions @group = @controller.group end