libvirt/src/remote/libvirtd-ro.socket.in
Daniel P. Berrangé b2390c3c25 remote: conditionalize systemd socket unit files
Prepare for reusing libvirtd socket unit files with other daemons by
making various parts of their config conditionally defined by the make
rules.

Reviewed-by: Christophe de Dinechin <dinechin@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-08-09 14:06:31 +01:00

17 lines
402 B
SYSTEMD

[Unit]
Description=@name@ local read-only socket
Before=@service@.service
BindsTo=@service@.socket
After=@service@.socket
@deps@
[Socket]
# The directory must match the @sysconfdir@/libvirt/@service@.conf unix_sock_dir setting
# when using systemd version < 227
ListenStream=@localstatedir@/run/libvirt/@sockprefix@-sock-ro
Service=@service@.service
SocketMode=0666
[Install]
WantedBy=sockets.target