# File lib/daemons/daemonize.rb, line 26
  def simulate(logfile_name = nil)
    # Release old working directory
    Dir.chdir "/"   

    close_io()

    # Free STDIN and point them somewhere sensible
    begin; STDIN.reopen "/dev/null"; rescue ::Exception; end       
  end