# File lib/thin/daemonizing.rb, line 154 def write_pid_file log ">> Writing PID to #{@pid_file}" FileUtils.mkdir_p File.dirname(@pid_file) open(@pid_file,"w") { |f| f.write(Process.pid) } File.chmod(0644, @pid_file) end