libvirt/src/remote/libvirtd-ro.socket.in
Andrea Bolognani deda1a0791 systemd: Add RemoveOnStop=yes to all sockets
Currently we only set this for the main sockets, which means
that

  $ systemctl stop virtqemud.socket

will make the socket disappear from the filesystem while

  $ systemctl stop virtqemud-ro.socket

won't. Get rid of this inconsistency.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2023-10-02 10:41:07 +02:00

16 lines
297 B
SYSTEMD

[Unit]
Description=@name@ local read-only socket
BindsTo=libvirtd.socket
After=libvirtd.socket
[Socket]
ListenStream=@runstatedir@/libvirt/libvirt-sock-ro
Service=libvirtd.service
SocketMode=0666
RemoveOnStop=yes
[Install]
WantedBy=sockets.target
Also=libvirtd.socket
Also=libvirtd-admin.socket