mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
5b816e1696
Substitute in the @sysconfigdir@ value instead of /etc. Reviewed-by: Christophe de Dinechin <dinechin@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
24 lines
703 B
SYSTEMD
24 lines
703 B
SYSTEMD
[Unit]
|
|
Description=Virtual machine lock manager
|
|
Requires=virtlockd.socket
|
|
Requires=virtlockd-admin.socket
|
|
Before=libvirtd.service
|
|
Documentation=man:virtlockd(8)
|
|
Documentation=https://libvirt.org
|
|
|
|
[Service]
|
|
EnvironmentFile=-@sysconfdir@/sysconfig/virtlockd
|
|
ExecStart=@sbindir@/virtlockd $VIRTLOCKD_ARGS
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
|
# Loosing the locks is a really bad thing that will
|
|
# cause the machine to be fenced (rebooted), so make
|
|
# sure we discourage OOM killer
|
|
OOMScoreAdjust=-900
|
|
# Needs to allow for max guests * average disks per guest
|
|
# libvirtd.service written to expect 4096 guests, so if we
|
|
# allow for 10 disks per guest, we get:
|
|
LimitNOFILE=40960
|
|
|
|
[Install]
|
|
Also=virtlockd.socket
|