From 49a1ed773b98122cd69922eac45da4602c881e31 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 27 May 2014 19:11:16 +0200 Subject: [PATCH] webbuild: add logrotate file --- Makefile | 2 ++ etc/logrotate.d/webbuild | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 etc/logrotate.d/webbuild diff --git a/Makefile b/Makefile index ef21f46..8f07d22 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,7 @@ install-dirs: @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/cron.hourly @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/cron.daily @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/sysconfig + @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/logrotate.d @$(INSTALL_DIR) $(DESTDIR)$(bindir) @$(INSTALL_DIR) $(DESTDIR)$(sbindir) @$(INSTALL_DIR) $(DESTDIR)$(cgidir) @@ -108,6 +109,7 @@ install-data: @$(INSTALL_SCRIPT) etc/cron.hourly/66-autoport-chroot $(DESTDIR)$(sysconfdir)/cron.hourly/ @$(INSTALL_SCRIPT) etc/cron.daily/40-autodist-cleanold $(DESTDIR)$(sysconfdir)/cron.daily/ @$(INSTALL_SCRIPT) etc/cron.daily/40-autodist-upstream-updates $(DESTDIR)$(sysconfdir)/cron.daily/ + @$(INSTALL_SCRIPT) etc/logrotate.d/webbuild $(DESTDIR)$(sysconfdir)/logrotate.d/webbuild @$(INSTALL_DATA) autospec-conf $(DESTDIR)$(pck_statedir)/.autospec @touch $(DESTDIR)$(pck_statedir)/template/autoupdate/auto.success @touch $(DESTDIR)$(pck_statedir)/template/autoupdate/auto.skip diff --git a/etc/logrotate.d/webbuild b/etc/logrotate.d/webbuild new file mode 100644 index 0000000..d841c07 --- /dev/null +++ b/etc/logrotate.d/webbuild @@ -0,0 +1,8 @@ +/var/webbuild/access_log { + monthly + rotate 12 + copytruncate + compress + notifempty + missingok +}