tftpboot/scripts/latecommand/logrotate/rsyslog

108 lines
1.6 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 7
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
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/daemon.log
{
maxsize 250k
missingok
sharedscripts
olddir /var/log/daemon
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
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/lpr.log
{
maxsize 250k
missingok
sharedscripts
olddir /var/log/lpr
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
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
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
}