[Lunar-commits] <moonbase> rsyslog: Adding logrotate.d/rsyslog

Stefan Wold ratler at lunar-linux.org
Sat Nov 7 15:53:07 CET 2009


commit 5a5f677a0a7d6c1e9bd684c634e8c7962b7f80ad
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Sat Nov 7 15:53:07 2009 +0100

    rsyslog: Adding logrotate.d/rsyslog
---
 utils/rsyslog/logrotate.d/rsyslog |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/utils/rsyslog/logrotate.d/rsyslog b/utils/rsyslog/logrotate.d/rsyslog
new file mode 100644
index 0000000..81594a0
--- /dev/null
+++ b/utils/rsyslog/logrotate.d/rsyslog
@@ -0,0 +1,6 @@
+/var/log/messages /var/log/auth /var/log/mail /var/log/spooler /var/log/boot.log /var/log/cron /var/log/kernel /var/log/lpr {
+    sharedscripts
+    postrotate
+        /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
+    endscript
+}


More information about the Lunar-commits mailing list