Re: Why syslog is not rotating?
On Sun, 3 Nov 2013 11:29:58 +0200 (IST)
Itay <debian@itayf.fastmail.fm> wrote:
> ----------[Begin: /etc/logrotate.d/rsyslog]----------
> /var/log/syslog
> {
> rotate 7
> daily
> missingok
> notifempty
> delaycompress
> compress
> postrotate
> invoke-rc.d rsyslog rotate > /dev/null
> endscript
> }
>
> /var/log/mail.info
> /var/log/mail.warn
> /var/log/mail.err
> /var/log/mail.log
> /var/log/daemon.log
> /var/log/kern.log
> /var/log/auth.log
> /var/log/user.log
> /var/log/lpr.log
> /var/log/cron.log
> /var/log/debug
> /var/log/messages
> {
> rotate 4
> weekly
> missingok
> notifempty
> compress
> delaycompress
> sharedscripts
> postrotate
> invoke-rc.d rsyslog rotate > /dev/null
> endscript
> }
> ----------[End: /etc/logrotate.d/rsyslog]----------
>
> I appreciate the help.
Looks that's a stock one.
Try it like this:
1) Invoke as a root:
/usr/sbin/logrotate /etc/logrotate.conf
2) If it doesn't help, add 'size' stanza to
the /etc/logrotate.d/rsyslog like this:
/var/log/syslog
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
size 1024k
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
and invoke logrotate once more:
/usr/sbin/logrotate /etc/logrotate.conf
Reco
Reply to: