]> xenbits.xensource.com Git - libvirt.git/commitdiff
systemd: Add missing Service for virtlogd/virtlockd
authorAndrea Bolognani <abologna@redhat.com>
Tue, 19 Sep 2023 13:20:16 +0000 (15:20 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 26 Sep 2023 14:55:28 +0000 (16:55 +0200)
While systemd will automatically match foo.socket with foo.service
based on their names, it's nicer to connect the two explicitly.

This is what we do for all services, with virtlogd and virtlockd
being the only exceptions.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/locking/virtlockd.socket.in
src/logging/virtlogd.socket.in

index 52014f45ec17e135d884bfc109b4d53eceee6d01..4ce75391ae5fd3d1a12689897b93190ed11b759d 100644 (file)
@@ -4,6 +4,7 @@ Before=libvirtd.service
 
 [Socket]
 ListenStream=@runstatedir@/libvirt/virtlockd-sock
+Service=virtlockd.service
 SocketMode=0600
 
 [Install]
index 9749a33197e98304f854e8bdc02e55ccc0038109..ff3e66e09b1b163351d6fccc6ffeda7248a6d33d 100644 (file)
@@ -4,6 +4,7 @@ Before=libvirtd.service
 
 [Socket]
 ListenStream=@runstatedir@/libvirt/virtlogd-sock
+Service=virtlogd.service
 SocketMode=0600
 
 [Install]