2015-02-09 16:35:05 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Virtual machine log manager
|
|
|
|
Requires=virtlogd.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]
|
|
|
|
EnvironmentFile=-/etc/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
|
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)
|
|
|
|
# libvirtd.service written to expect 4096 guests, so if we
|
|
|
|
# guess at 2 log files per guest here (stdio + 1 serial):
|
|
|
|
LimitNOFILE=8192
|
2015-02-09 16:35:05 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
Also=virtlogd.socket
|