summaryrefslogtreecommitdiffstats
path: root/package/logrotate/logrotate.conf
diff options
context:
space:
mode:
Diffstat (limited to 'package/logrotate/logrotate.conf')
-rw-r--r--package/logrotate/logrotate.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/logrotate/logrotate.conf b/package/logrotate/logrotate.conf
new file mode 100644
index 000000000..6d829dc9d
--- /dev/null
+++ b/package/logrotate/logrotate.conf
@@ -0,0 +1,14 @@
+compress
+
+include /etc/logrotate.d
+
+/var/log/messages /var/log/auth.log /var/log/user.log {
+ rotate 7
+ daily
+ delaycompress
+ missingok
+ sharedscripts
+ postrotate
+ /usr/bin/killall -HUP syslogd
+ endscript
+}