From: Stefan Schmidt Date: Thu, 11 Nov 2010 14:00:36 +0000 (+0100) Subject: bug-logrotate: Add logrotate config file for bug X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7570e05a2518b206f3e5808a3fae6ace6b064851;p=openembedded.git bug-logrotate: Add logrotate config file for bug --- diff --git a/recipes/bug-logrotate/bug-logrotate_0.1.bb b/recipes/bug-logrotate/bug-logrotate_0.1.bb new file mode 100644 index 0000000000..f9e77af556 --- /dev/null +++ b/recipes/bug-logrotate/bug-logrotate_0.1.bb @@ -0,0 +1,13 @@ +DESCRIPTION = "Logrotate rules for BUG" +RDEPENDS_${PN} = "logrotate" + +SRC_URI = "file://bug-rules" + +S = "${WORKDIR}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +do_install() { + install -d ${D}/etc/logrotate.d + install -m 0644 bug-rules ${D}/etc/logrotate.d/ +} diff --git a/recipes/bug-logrotate/files/bug-rules b/recipes/bug-logrotate/files/bug-rules new file mode 100644 index 0000000000..e8ae5afa1f --- /dev/null +++ b/recipes/bug-logrotate/files/bug-rules @@ -0,0 +1,44 @@ +/var/log/felix.log +{ + rotate 7 + daily + size 1M + missingok + notifempty + compress + postrotate + /etc/init.d/felix restart + endscript +} + +/var/log/kern.log +/var/log/debug +/var/log/syslog +{ + rotate 7 + daily + size 1M + missingok + notifempty + compress + postrotate + /etc/init.d/syslog-ng restart + endscript +} + +/var/log/daemon.log +/var/log/auth.log +/var/log/user.log +/var/log/cron.log +/var/log/messages +{ + rotate 4 + weekly + missingok + notifempty + compress + sharedscripts + postrotate + /etc/init.d/cron restart + endscript +}