run (Daemons::Controller)

    # File lib/daemons/controller.rb, line 54
        def run
          @options.update @optparse.parse(@controller_part).delete_if {|k,v| !v}

          setup_options()

          #pp @options

          @group = ApplicationGroup.new(@app_name, @options)
          @group.controller_argv = @controller_part
          @group.app_argv = @app_part

          @group.setup

          case @command
            when 'start'
              @group.new_application.start
            when 'run'
              @options[:ontop] ||= true
              @group.new_application.start
            when 'stop'
              @group.stop_all
            when 'restart'
              unless @group.applications.empty?
                @group.stop_all
                sleep 1
                @group.start_all
              end
            when 'zap'
              @group.zap_all
            when 'status'
              unless @group.applications.empty?
                @group.show_status
              else
                puts "#{@group.app_name}: no instances running"
              end
            when nil
              raise CmdException.new('no command given')
              #puts "ERROR: No command given"; puts

              #print_usage()
              #raise('usage function not implemented')
            else
              raise Error.new("command '#{@command}' not implemented")
          end
        end