[oe-commits] Stefan Schmidt : bug-logrotate: Add logrotate config file for bug
git version control
git at git.openembedded.org
Thu Dec 16 14:05:21 UTC 2010
Module: openembedded.git
Branch: master
Commit: 7570e05a2518b206f3e5808a3fae6ace6b064851
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=7570e05a2518b206f3e5808a3fae6ace6b064851
Author: Stefan Schmidt <stefan at buglabs.net>
Date: Thu Nov 11 15:00:36 2010 +0100
bug-logrotate: Add logrotate config file for bug
---
recipes/bug-logrotate/bug-logrotate_0.1.bb | 13 ++++++++
recipes/bug-logrotate/files/bug-rules | 44 ++++++++++++++++++++++++++++
2 files changed, 57 insertions(+), 0 deletions(-)
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 0000000..f9e77af
--- /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 0000000..e8ae5af
--- /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
+}
More information about the Openembedded-commits
mailing list