mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-07 13:35:21 +00:00
ee04bfaf9d
Certain libvirtd.conf settings are not honoured when using systemd socket activation. Certain systemd unit file settings must match those defined in libvirtd.conf for systemd socket activation to work with systemd version < 227, otherwise libvirtd cannot determine which inherited FD to use for which service. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
16 lines
378 B
SYSTEMD
16 lines
378 B
SYSTEMD
[Unit]
|
|
Description=Libvirt local read-only socket
|
|
Before=libvirtd.service
|
|
BindsTo=libvirtd.socket
|
|
After=libvirtd.socket
|
|
|
|
[Socket]
|
|
# The directory must match the /etc/libvirt/libvirtd.conf unix_sock_dir setting
|
|
# when using systemd version < 227
|
|
ListenStream=@localstatedir@/run/libvirt/libvirt-sock-ro
|
|
Service=libvirtd.service
|
|
SocketMode=0666
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|