summaryrefslogtreecommitdiff
path: root/source/a/logrotate/logrotate.conf
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/logrotate/logrotate.conf')
-rw-r--r--source/a/logrotate/logrotate.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/a/logrotate/logrotate.conf b/source/a/logrotate/logrotate.conf
index 27b03e13..cb69ed52 100644
--- a/source/a/logrotate/logrotate.conf
+++ b/source/a/logrotate/logrotate.conf
@@ -18,12 +18,21 @@ rotate 4
# create new (empty) log files after rotating old ones:
create
+# don't rotate empty log files
+notifempty
+
# uncomment if you want to use the date as a suffix of the rotated file
#dateext
# uncomment this if you want your log files compressed:
#compress
+# uncomment this to put rotated logs in "oldlogs" subdir
+# this is relative to the original dir of the to-be-rotated file
+# You can use a full path here, but beware of identically-named
+# logfiles in different directories, e.g. httpd logs
+#olddir oldlogs
+
# some packages install log rotation information in this directory:
include /etc/logrotate.d