def METHOD_NAME():
    """
    Destroy guest/Reboot guest/Restart libvirtd or virtqemud.
    """
    if lifecycle == "destroy_guest":
        virsh.destroy(vm_name, ignore_status=False, debug=True)
        virsh.start(vm_name, ignore_status=False, debug=True)
    elif lifecycle == "reboot_guest":
        virsh.reboot(vm_name, ignore_status=False, debug=True)
    elif lifecycle == "restart_service":
        libvirtd = utils_libvirtd.Libvirtd()
        libvirtd.restart()
    if not utils_misc.wait_for(lambda: vm.is_alive(), 20, first=2):
        test.error("Guest state should be active")
    vm.wait_for_login().close()