libvirt/src/remote/libvirtd-tls.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

16 lines
320 B
SYSTEMD

[Unit]
Description=@name@ TLS IP socket
Before=@service@.service
BindsTo=@service@.socket
After=@service@.socket
@deps@
[Socket]
# This must match the @sysconfdir@/libvirt/@service@.conf tls_port setting
# when using systemd version < 227
ListenStream=16514
Service=@service@.service
[Install]
WantedBy=sockets.target