From: Frank Brehm Date: Wed, 11 Apr 2018 12:07:14 +0000 (+0200) Subject: Adding Logrotate config files X-Git-Tag: 0.1.1~52 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=63041e61867bea03dc9f08bce17f36bfc667279c;p=pixelpark%2Fcreate-vmware-tpl.git Adding Logrotate config files --- diff --git a/files/logrotate.conf b/files/logrotate.conf new file mode 100644 index 0000000..e5a18f8 --- /dev/null +++ b/files/logrotate.conf @@ -0,0 +1,15 @@ + +compress +create +dateext +dateformat -%Y-%m-%d +delaycompress +missingok +nomail +noolddir +notifempty +rotate 4 +weekly + +# configurable file rotations +include /etc/logrotate.d diff --git a/files/logrotate.d.btmp b/files/logrotate.d.btmp new file mode 100644 index 0000000..0f26cad --- /dev/null +++ b/files/logrotate.d.btmp @@ -0,0 +1,10 @@ + +/var/log/btmp { + create 0600 root utmp + dateext + dateformat -%Y-%m-%d + minsize 1M + missingok + monthly + rotate 1 +} diff --git a/files/logrotate.d.syslog b/files/logrotate.d.syslog new file mode 100644 index 0000000..e6b30ac --- /dev/null +++ b/files/logrotate.d.syslog @@ -0,0 +1,14 @@ + +/var/log/cron /var/log/maillog /var/log/messages /var/log/secure /var/log/spooler { + compress + daily + dateformat -%Y-%m-%d + delaycompress + minsize 4M + missingok + rotate 10 + sharedscripts + postrotate + /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true + endscript +} diff --git a/files/logrotate.d.wtmp b/files/logrotate.d.wtmp new file mode 100644 index 0000000..8acb108 --- /dev/null +++ b/files/logrotate.d.wtmp @@ -0,0 +1,10 @@ + +/var/log/wtmp { + create 0664 root utmp + dateext + dateformat -%Y-%m-%d + minsize 1M + missingok + monthly + rotate 12 +}