tftpboot/scripts/latecommand/logrotate/rsyslog

117 lines
1.8 KiB
Plaintext

# Default directives are activilly used, please see /etc/logrotate.conf
/var/log/syslog
/var/log/syslog.log
/var/log/local0.log
/var/log/local1.log
/var/log/local2.log
/var/log/local3.log
/var/log/local4.log
/var/log/local5.log
/var/log/local6.log
/var/log/local7.log
/var/log/uucp.log
{
rotate 8
daily
missingok
olddir /var/log/syslog.d
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/cron.log /var/log/mark.log {
maxsize 250k
missingok
sharedscripts
olddir /var/log/cron.d
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/daemon.log {
maxsize 250k
missingok
sharedscripts
olddir /var/log/daemon.d
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/kern.log /var/log/kernel.log {
maxsize 250k
missingok
sharedscripts
olddir /var/log/kern.d
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/lpr.log {
maxsize 250k
missingok
sharedscripts
olddir /var/log/lpr.d
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/mail.log
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
{
maxsize 250k
missingok
sharedscripts
olddir /var/log/mail.d
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/auth.log
/var/log/authpriv.log
/var/log/user.log
{
maxsize 250k
missingok
sharedscripts
olddir /var/log/auth.d
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/messages /var/log/debug {
maxsize 250k
missingok
sharedscripts
olddir /var/log/messages.d
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}