From: Arkadiusz Miśkiewicz Date: Thu, 28 May 2020 06:12:49 +0000 (+0200) Subject: - rel 3; if btmp grows large (1.2GB here) it slows down su - considerably; rotate... X-Git-Tag: auto/th/SysVinit-2.96-3 X-Git-Url: https://git.pld-linux.org/gitweb.cgi?p=packages%2FSysVinit.git;a=commitdiff_plain;h=6d5059b79005ab36abfeca9f9d9bb0f4ac06263d;ds=sidebyside - 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) --- 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 }