On Thu, Jan 09, 2014 at 02:31:16PM +0800, martin f krafft wrote:
> I just happened to notice that /var/log/syslog had not been rotated
> in almost 1 month:
> 
>   % ls -l /var/log/syslog*
>   -rw-r----- 1 root adm 16588618 Jan  9 14:21 /var/log/syslog
>   -rw-r----- 1 root adm   336215 Dec 11 15:37 /var/log/syslog.1
> 
> Indeed, when I run logrotate, nothing happens:
> 
>   % sudo logrotate -d /etc/logrotate.d/rsyslog 2>&1 | grep -A2 syslog
>   reading config file /etc/logrotate.d/rsyslog
> 
>   Handling 2 logs
> 
> Here is the status file, indicating that something's wrong:
> 
>   % grep syslog /var/lib/logrotate/status
>   "/var/log/syslog" 2014-1-9-10:41:57
> 
> And indeed, logrotate *thinks* it's rotating, but it actually does not:
> 
>   % sudo logrotate --force -d /etc/logrotate.d/rsyslog

What's in /etc/logrotate.d/rsyslog and /etc/logrotate.conf?

Running with -d (--debug) doesn't change anything. If you want to
watch a forced rotation, use -v (--verbose).

I'm also using rsyslog, the same version of logrotate, and rotation is
happening correctly.

Have you checked root's mailbox to see if logrotate is crashing before
reaching rsyslog? (It shouldn't be, as it's updated the status file,
but you never know.)

-- 
Paul Martin <p...@debian.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to