start (God)

    # File lib/god.rb, line 571
      def self.start
        self.internal_init

        # instantiate server
        self.server = Socket.new(self.port)

        # start monitoring any watches set to autostart
        self.watches.values.each { |w| w.monitor if w.autostart? }

        # clear pending watches
        self.pending_watches.clear

        # mark as running
        self.running = true

        # don't exit
        self.main =
        Thread.new do
          loop do
            sleep 60
          end
        end

        self.main.join
      end