def running?(path)
      wpid = ::File.read(path).to_i
      return if wpid <= 0
      Process.kill(0, wpid)
      wpid
    rescue Errno::EPERM, Errno::ESRCH, Errno::ENOENT
      # noop
    end
def running?(path)
      wpid = ::File.read(path).to_i
      return if wpid <= 0
      Process.kill(0, wpid)
      wpid
    rescue Errno::EPERM, Errno::ESRCH, Errno::ENOENT
      # noop
    end
Read the working pid from the pid file.