From 6d5059b79005ab36abfeca9f9d9bb0f4ac06263d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 28 May 2020 08:12:49 +0200 Subject: [PATCH] - rel 3; if btmp grows large (1.2GB here) it slows down su - considerably; rotate it (and wtmp) using rules from logrotate/examples/ tarball (which are also used by debian) --- SysVinit.spec | 2 +- sysvinit.logrotate | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/SysVinit.spec b/SysVinit.spec index d5551fc..d183d1e 100644 --- a/SysVinit.spec +++ b/SysVinit.spec @@ -13,7 +13,7 @@ Summary(tr.UTF-8): System V başlatma programı Summary(uk.UTF-8): Програми, що керують базовими системними процесами Name: SysVinit Version: 2.96 -Release: 2 +Release: 3 License: GPL v2+ Group: Base Source0: http://download.savannah.gnu.org/releases/sysvinit/sysvinit-%{version}.tar.xz diff --git a/sysvinit.logrotate b/sysvinit.logrotate index a72aaa9..fef1153 100644 --- a/sysvinit.logrotate +++ b/sysvinit.logrotate @@ -3,9 +3,16 @@ #} /var/log/btmp { + missingok + monthly + create 0640 root root + rotate 1 } /var/log/wtmp { - create 664 root utmp + missingok monthly + create 0664 root utmp + minsize 1M + rotate 1 } -- 2.44.0