mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +00:00
cc5311e730
If a systemd socket uses /var/run in its path, systemd prints a warning at runtime [ 15.139976] systemd[1]: /usr/lib/systemd/system/virtlockd.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/libvirt/virtlockd-sock → /run/libvirt/virtlockd-sock; please update the unit file accordingly. This minimal change updates the socket unit files to honour the $runstatedir path. There's no functional change by default yet since both expressions expand to the same value. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
14 lines
265 B
SYSTEMD
14 lines
265 B
SYSTEMD
[Unit]
|
|
Description=Virtual machine log manager socket
|
|
Before=libvirtd.service
|
|
BindsTo=virtlogd.socket
|
|
After=virtlogd.socket
|
|
|
|
[Socket]
|
|
ListenStream=@runstatedir@/libvirt/virtlogd-admin-sock
|
|
Service=virtlogd.service
|
|
SocketMode=0600
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|