new (Daemons::Controller)

    # File lib/daemons/controller.rb, line 21
        def initialize(options = {}, argv = [])
          @options = options
          @argv = argv

          # Allow an app_name to be specified. If not specified use the
          # basename of the script.
          @app_name = options[:app_name]

          if options[:script]
            @script = File.expand_path(options[:script])

            @app_name ||= File.split(@script)[1]
          end

          @app_name ||= 'unknown_application'

          @command, @controller_part, @app_part = Controller.split_argv(argv)

          #@options[:dir_mode] ||= :script

          @optparse = Optparse.new(self)
        end