]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
libvirtd: enable virtlockd/virtlogd socket activation on install
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2015 12:46:27 +0000 (12:46 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2015 17:32:49 +0000 (17:32 +0000)
When someone does 'systemctl enable libvirtd.service' we should
also enable virtlockd.socket/virtlogd.socket, so that they can
be auto-activated if libvirtd tries to access the sockets.

Without this, people have to manually enable the units themselves
via 'systemctl enable virtdlogd.socket'.

This also ensures that if distros uses  'systemctl preset' for
enabling 'libvirtd.service', then the virtdlogd.socket gets
enabled without having to wait for the distro to update their
presets file.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
daemon/libvirtd.service.in

index 9e67e433adcfacba27ec359d4e77784c2aaad97b..608221c1524aaf70dad94556fde21cca5da5b0dc 100644 (file)
@@ -22,3 +22,5 @@ Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target
+Also=virtlockd.socket
+Also=virtlogd.socket