systemd: Add missing Service for virtlogd/virtlockd

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>
This commit is contained in:
Andrea Bolognani 2023-09-19 15:20:16 +02:00
parent 06f12fd041
commit ec51404924
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ Before=libvirtd.service
[Socket]
ListenStream=@runstatedir@/libvirt/virtlockd-sock
Service=virtlockd.service
SocketMode=0600
[Install]

View File

@ -4,6 +4,7 @@ Before=libvirtd.service
[Socket]
ListenStream=@runstatedir@/libvirt/virtlogd-sock
Service=virtlogd.service
SocketMode=0600
[Install]