# File lib/mongrel_cluster/init.rb, line 202
    def find_pid(port)
      ps_cmd = "ps #{cmd_flags} pid,#{cmd_name}"
      ps_output = `#{ps_cmd}`
      ps_output.each do |line|
        if line =~ /-P #{Regexp.escape(port_pid_file(port))} /
          pid = line.split[0]
          return pid
        end
      end
      nil
    end