From: Hans de Goede Date: Sun, 13 Oct 2019 14:37:29 +0000 (+0200) Subject: scripts: Add a logrotate file for /var/log/boot.log X-Git-Tag: 0.9.5~30^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5409977505534c5fa1c059fc3bc670c3f5d70653;p=thirdparty%2Fplymouth.git scripts: Add a logrotate file for /var/log/boot.log Since plymouth concatenates boot logs one after the other in /var/log/boot.log, causing it to grow endlessly. we need to logrotrate it. Fixes #31 Signed-off-by: Hans de Goede --- diff --git a/scripts/Makefile.am b/scripts/Makefile.am index ba492df5..d4168747 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -6,9 +6,13 @@ initrdscript_SCRIPTS = plymouth-update-initrd plymouth-generate-initrd plymouth- sbinscriptsdir = $(sbindir) sbinscripts_SCRIPTS = plymouth-set-default-theme +bootlogdir = $(sysconfdir)/logrotate.d +bootlog_DATA = bootlog + EXTRA_DIST= plymouth-update-initrd \ plymouth-generate-initrd.in \ plymouth-populate-initrd.in \ - plymouth-set-default-theme.in \ + plymouth-set-default-theme.in \ $(noinst_SCRIPTS) \ + bootlog \ default.cfg diff --git a/scripts/bootlog b/scripts/bootlog new file mode 100644 index 00000000..9be1a64e --- /dev/null +++ b/scripts/bootlog @@ -0,0 +1,8 @@ +/var/log/boot.log +{ + missingok + daily + copytruncate + rotate 7 + notifempty +}