    # File lib/mongrel/configurator.rb, line 185
        def daemonize(options={})
          ops = resolve_defaults(options)
          # save this for later since daemonize will hose it
          if RUBY_PLATFORM !~ /mswin/
            require 'daemons/daemonize'

            logfile = ops[:log_file]
            if logfile[0].chr != "/"
              logfile = File.join(ops[:cwd],logfile)
              if not File.exist?(File.dirname(logfile))
                log "!!! Log file directory not found at full path #{File.dirname(logfile)}.  Update your configuration to use a full path."
                exit 1
              end
            end

            Daemonize.daemonize(logfile)

            # change back to the original starting directory
            Dir.chdir(ops[:cwd])

          else
            log "WARNING: Win32 does not support daemon mode."
          end
        end