2015-02-09 16:35:05 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Virtual machine log manager
|
|
|
|
Requires=virtlogd.socket
|
2018-01-19 14:54:00 +00:00
|
|
|
Requires=virtlogd-admin.socket
|
2016-09-06 13:16:24 +00:00
|
|
|
Before=libvirtd.service
|
2015-02-09 16:35:05 +00:00
|
|
|
Documentation=man:virtlogd(8)
|
2017-10-13 15:30:41 +00:00
|
|
|
Documentation=https://libvirt.org
|
2015-02-09 16:35:05 +00:00
|
|
|
|
|
|
|
[Service]
|
2019-07-18 15:17:07 +00:00
|
|
|
EnvironmentFile=-@sysconfdir@/sysconfig/virtlogd
|
2015-02-09 16:35:05 +00:00
|
|
|
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
|
2017-03-15 16:51:51 +00:00
|
|
|
# Need to have at least one file open per guest (eg QEMU
|
|
|
|
# stdio log), but might be more (eg serial console logs)
|
2017-10-18 09:19:29 +00:00
|
|
|
# A common case is OpenStack which often has up to 4 file
|
|
|
|
# handles per guest.
|
2017-03-15 16:51:51 +00:00
|
|
|
# libvirtd.service written to expect 4096 guests, so if we
|
2017-10-18 09:19:29 +00:00
|
|
|
# guess at 4 files per guest here that is 16k:
|
|
|
|
LimitNOFILE=16384
|
2015-02-09 16:35:05 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
Also=virtlogd.socket
|