]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirtd: Add service dependency on systemd-logind
authorCole Robinson <crobinso@redhat.com>
Thu, 7 Jun 2018 14:44:34 +0000 (10:44 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 12 Jun 2018 17:29:42 +0000 (13:29 -0400)
At daemon startup we query logind for host PM support status. Without
a service dependency host startup can trigger libvirtd errors like:

error : virNodeSuspendSupportsTarget:336 : internal error: Cannot probe for
supported suspend types
warning : virQEMUCapsInit:949 : Failed to get host power management
capabilities

https://bugzilla.redhat.com/show_bug.cgi?id=1588288

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/remote/libvirtd.service.in

index 769702ea756346e3a3123de2863d389e717c80a9..7f689e08a85decb7dedc986db6b4c432fa061907 100644 (file)
@@ -15,6 +15,7 @@ After=iscsid.service
 After=apparmor.service
 After=local-fs.target
 After=remote-fs.target
+After=systemd-logind.service
 After=systemd-machined.service
 Documentation=man:libvirtd(8)
 Documentation=https://libvirt.org