def METHOD_NAME(service_path, modify_info):
    """
    Modify libvirtd or virtqemud service
    :param service_path: service path
    :param modify_info: service modify info
    """
    ori_value = process.getoutput("cat %s | grep LimitNOFILE" % service_path, shell=True)
    with open(service_path, 'r+') as f:
        content = f.read()
        content = re.sub(ori_value, modify_info, content)
        f.seek(0)
        f.write(content)
        f.truncate()