virtlogd.service.in 797 字节
Newer Older
1 2 3
[Unit]
Description=Virtual machine log manager
Requires=virtlogd.socket
4
Before=libvirtd.service
5
Documentation=man:virtlogd(8)
6
Documentation=https://libvirt.org
7 8 9 10 11 12 13 14 15

[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
16 17
# Need to have at least one file open per guest (eg QEMU
# stdio log), but might be more (eg serial console logs)
18 19
# A common case is OpenStack which often has up to 4 file
# handles per guest.
20
# libvirtd.service written to expect 4096 guests, so if we
21 22
# guess at 4 files per guest here that is 16k:
LimitNOFILE=16384
23 24 25

[Install]
Also=virtlogd.socket