Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Logrotate settings

l15k4 edited this page Mar 22, 2014 · 1 revision

Logrotate is periodically rotating log files so that the log file will be renamed and compressed as follows :

  • mail.log -> mail.log.1 -> mail.log.1.gz -> mail.log.1.gz
  • these settings makes it easier for PDA to process everything. Property 'size 100MB' doesn't allow log files grow more then 100MB
  • /etc/logrotate.d/rsyslog
/var/log/mail.log {
        rotate 100
	    size 100M
	    missingok
	    notifempty
	    compress
	    delaycompress
	    sharedscripts
	    postrotate
		    invoke-rc.d rsyslog reload > /dev/null
	    endscript
}
Clone this wiki locally