aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslog-ng/syslog-ng.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'main/syslog-ng/syslog-ng.logrotate')
-rw-r--r--main/syslog-ng/syslog-ng.logrotate52
1 files changed, 13 insertions, 39 deletions
diff --git a/main/syslog-ng/syslog-ng.logrotate b/main/syslog-ng/syslog-ng.logrotate
index c3fd0934180..4b9ad18f359 100644
--- a/main/syslog-ng/syslog-ng.logrotate
+++ b/main/syslog-ng/syslog-ng.logrotate
@@ -1,40 +1,14 @@
-/var/log/auth.log {
- rotate 14
- daily
- missingok
- notifempty
- compress
- postrotate
- /etc/init.d/syslog-ng reload >/dev/null
- endscript
-}
-
-/var/log/mail.log /var/log/mail.info /var/log/mail.warn /var/log/mail.err {
- rotate 8
- weekly
- missingok
- notifempty
- compress
-}
-
-/var/log/kern.log {
- rotate 2
- monthly
- missingok
- notifempty
- compress
- postrotate
- /etc/init.d/syslog-ng reload >/dev/null
- endscript
-}
-
-/var/log/messages /var/log/error.log {
- rotate 14
- weekly
- missingok
- notifempty
- compress
- postrotate
- /etc/init.d/syslog-ng reload >/dev/null
- endscript
+/var/log/auth.log
+/var/log/boot.log
+/var/log/cron.log
+/var/log/kern.log
+/var/log/mail.log
+/var/log/messages
+{
+ notifempty
+ compress
+ sharedscripts
+ postrotate
+ /etc/init.d/syslog-ng --ifstarted reload >/dev/null
+ endscript
}