mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-04 03:55:20 +00:00
b2390c3c25
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>
15 lines
341 B
SYSTEMD
15 lines
341 B
SYSTEMD
[Unit]
|
|
Description=@name@ local socket
|
|
Before=@service@.service
|
|
@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
|
|
Service=@service@.service
|
|
SocketMode=0666
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|