From 32047175759770ac0b37a1fede68a13e2b4d4fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20B=C3=A9langer?= Date: Fri, 3 Jun 2011 23:18:50 -0400 Subject: Add logrotate config file to rotate /var/log/boot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric BĂ©langer Signed-off-by: Tom Gundersen --- Makefile | 3 ++- bootlog | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 bootlog diff --git a/Makefile b/Makefile index ff7d907..c568b13 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ VER := $(shell git describe) -DIRS := /etc/rc.d /etc/conf.d /etc/rc.d/functions.d /sbin /etc/bash_completion.d /usr/share/zsh/site-functions +DIRS := /etc/rc.d /etc/conf.d /etc/rc.d/functions.d /etc/logrotate.d /sbin /etc/bash_completion.d /usr/share/zsh/site-functions minilogd: minilogd.o @@ -9,6 +9,7 @@ installdirs: install: minilogd installdirs install -m644 -t $(DESTDIR)/etc inittab rc.conf install -m755 -t $(DESTDIR)/etc rc.local rc.local.shutdown rc.multi rc.shutdown rc.single rc.sysinit + install -m644 -t $(DESTDIR)/etc/logrotate.d bootlog install -m644 -t $(DESTDIR)/etc/rc.d functions install -m755 -t $(DESTDIR)/etc/rc.d hwclock network netfs install -m755 -t $(DESTDIR)/sbin minilogd rc.d diff --git a/bootlog b/bootlog new file mode 100644 index 0000000..b97af0b --- /dev/null +++ b/bootlog @@ -0,0 +1,9 @@ +/var/log/boot { + compress + rotate 1 + size=+1024k + notifempty + missingok + copytruncate + noolddir +} -- cgit v1.2.3