mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-01 10:51:12 +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>
27 lines
836 B
SYSTEMD
27 lines
836 B
SYSTEMD
[Unit]
|
|
Description=Virtual machine log manager
|
|
Requires=virtlogd.socket
|
|
Requires=virtlogd-admin.socket
|
|
Before=libvirtd.service
|
|
Documentation=man:virtlogd(8)
|
|
Documentation=https://libvirt.org
|
|
|
|
[Service]
|
|
EnvironmentFile=-@sysconfdir@/sysconfig/virtlogd
|
|
ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
|
# Loosing the logs is a really bad thing that will
|
|
# cause the machine to be fenced (rebooted), so make
|
|
# sure we discourage OOM killer
|
|
OOMScoreAdjust=-900
|
|
# Need to have at least one file open per guest (eg QEMU
|
|
# stdio log), but might be more (eg serial console logs)
|
|
# A common case is OpenStack which often has up to 4 file
|
|
# handles per guest.
|
|
# libvirtd.service written to expect 4096 guests, so if we
|
|
# guess at 4 files per guest here that is 16k:
|
|
LimitNOFILE=16384
|
|
|
|
[Install]
|
|
Also=virtlogd.socket
|