mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-01 19:01:14 +00:00
975b004d07
The virtlogd config is set to rollover logs every 2 MB. Normally a logrotate config file is also installed to handle cases where virtlogd is disabled. This is set to rollover weekly with no size constraint. As a result logrotate can interfere with virtlogd's, rolling over files that virtlogd has already taken care of. This changes logrotate configs to rollover based on a max size constraint of 2 MB + 1 byte. When virtlogd is running the log files will never get this large, making logrotate a no-op. If the user changes the size in virtlogd's config to something larger, they are responsible for also changing the logrotate config suitably. The LXC/libxl drivers don't use virtlogd, but there logrotate config is altered to match the QEMU driver config, for the sake of consistency. Reviewed-by: Jim Fehlig <jfehlig@suse.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> |
||
---|---|---|
.. | ||
log_daemon_config.c | ||
log_daemon_config.h | ||
log_daemon_dispatch.c | ||
log_daemon_dispatch.h | ||
log_daemon.c | ||
log_daemon.h | ||
log_handler.c | ||
log_handler.h | ||
log_manager.c | ||
log_manager.h | ||
log_protocol.x | ||
Makefile.inc.am | ||
test_virtlogd.aug.in | ||
virtlogd-admin.socket.in | ||
virtlogd.aug | ||
virtlogd.conf | ||
virtlogd.pod | ||
virtlogd.service.in | ||
virtlogd.socket.in | ||
virtlogd.sysconf |