]> xenbits.xensource.com Git - libvirt.git/commitdiff
remote: use Wants instead of Requires for libvirtd sockets
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 Aug 2019 13:48:46 +0000 (14:48 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 27 Aug 2019 09:29:52 +0000 (10:29 +0100)
To facilitate upgrades from earlier versions of libvirt which did not
use socket activation for libvirtd, we want to allow the libvirtd socket
units to be disabled (masked). This can only be supported if we use the
weaker Wants statement instead of Requires.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/libvirtd.service.in

index 4c5b28b47883b59cd1f9d0edf22c67ca4aa60d5a..82892b4f70367a0fa6c1918bca18c1b074dac88e 100644 (file)
@@ -2,9 +2,12 @@
 Description=Virtualization daemon
 Requires=virtlogd.socket
 Requires=virtlockd.socket
-Requires=libvirtd.socket
-Requires=libvirtd-ro.socket
-Requires=libvirtd-admin.socket
+# Use Wants instead of Requires so that users
+# can disable these three .socket units to revert
+# to a traditional non-activation deployment setup
+Wants=libvirtd.socket
+Wants=libvirtd-ro.socket
+Wants=libvirtd-admin.socket
 Wants=systemd-machined.service
 Before=libvirt-guests.service
 After=network.target