From 39f8552dc24aab38881ce41931c17820381d3fad Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Mon, 19 Sep 2016 00:51:23 +0100 Subject: factory-default/app-admin/logrotate: Add default logrotate.conf --- .../app-admin/logrotate/etc/logrotate.conf | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 factory-default/app-admin/logrotate/etc/logrotate.conf diff --git a/factory-default/app-admin/logrotate/etc/logrotate.conf b/factory-default/app-admin/logrotate/etc/logrotate.conf new file mode 100644 index 00000000..ee1210d3 --- /dev/null +++ b/factory-default/app-admin/logrotate/etc/logrotate.conf @@ -0,0 +1,47 @@ +# Log files are rotated every day +daily + +# Log files are rotated 31 times before being removed +rotate 31 + +# Immediately after rotation the log file is created +create + +# Archive old versions of log files adding a date extension +dateext + +# Use yesterday's instead of today's date +dateyesterday + +# If the log file is missing, go on to the next one +missingok + +# Old versions of log files are compressed +compress + +# Logs are moved into directory for rotation +olddir archives + +# Create directory specified by olddir +createolddir + +# Do not rotate the log if it is empty +notifempty + +# no packages own wtmp and btmp -- we'll rotate them here. +/var/log/wtmp { + monthly + create 0664 root utmp + minsize 1M + rotate 1 +} + +/var/log/btmp { + missingok + monthly + create 0600 root utmp + rotate 1 +} + +# Reads the file given as an argument +include /etc/logrotate.d -- cgit v1.2.3