projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
79ef033
)
rsyslog: Add default logrotate config.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 4 May 2009 20:37:56 +0000
(22:37 +0200)
committer
root
<root@drsnuggles.stderr.nl>
Tue, 5 May 2009 16:34:37 +0000
(18:34 +0200)
etc/logrotate.d/rsyslog
[new file with mode: 0644]
patch
|
blob
diff --git a/etc/logrotate.d/rsyslog
b/etc/logrotate.d/rsyslog
new file mode 100644
(file)
index 0000000..
9ce5a44
--- /dev/null
+++ b/
etc/logrotate.d/rsyslog
@@ -0,0
+1,37
@@
+/var/log/syslog
+{
+ rotate 7
+ daily
+ missingok
+ notifempty
+ delaycompress
+ compress
+ postrotate
+ invoke-rc.d rsyslog reload > /dev/null
+ endscript
+}
+
+/var/log/mail.info
+/var/log/mail.warn
+/var/log/mail.err
+/var/log/mail.log
+/var/log/daemon.log
+/var/log/kern.log
+/var/log/auth.log
+/var/log/user.log
+/var/log/lpr.log
+/var/log/cron.log
+/var/log/debug
+/var/log/messages
+{
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+ sharedscripts
+ postrotate
+ invoke-rc.d rsyslog reload > /dev/null
+ endscript
+}