[libvirt PATCH 03/42] systemd: Add missing Service for virtlogd/virtlockd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 src/locking/virtlockd.socket.in | 1 +
 src/logging/virtlogd.socket.in  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/locking/virtlockd.socket.in b/src/locking/virtlockd.socket.in
index 52014f45ec..4ce75391ae 100644
--- a/src/locking/virtlockd.socket.in
+++ b/src/locking/virtlockd.socket.in
@@ -4,6 +4,7 @@ Before=libvirtd.service
 
 [Socket]
 ListenStream=@runstatedir@/libvirt/virtlockd-sock
+Service=virtlockd.service
 SocketMode=0600
 
 [Install]
diff --git a/src/logging/virtlogd.socket.in b/src/logging/virtlogd.socket.in
index 9749a33197..ff3e66e09b 100644
--- a/src/logging/virtlogd.socket.in
+++ b/src/logging/virtlogd.socket.in
@@ -4,6 +4,7 @@ Before=libvirtd.service
 
 [Socket]
 ListenStream=@runstatedir@/libvirt/virtlogd-sock
+Service=virtlogd.service
 SocketMode=0600
 
 [Install]
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux