On Sun, 3 Nov 2013, Reco wrote:

Date: Sun, 3 Nov 2013 13:48:42 +0400
From: Reco <recovery...@gmail.com>
To: debian-user@lists.debian.org
Subject: Re: Why syslog is not rotating?
Resent-Date: Sun,  3 Nov 2013 09:49:15 +0000 (UTC)
Resent-From: debian-user@lists.debian.org

Looks that's a stock one.
Try it like this:

1) Invoke as a root:

/usr/sbin/logrotate /etc/logrotate.conf

Didn't work.

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

Not yet, but we have some progress...

Trial 1:

# /usr/sbin/logrotate /etc/logrotate.conf
error: error creating output file /var/log/syslog.1.gz: File exists

Trial 2:
# rm /var/log/syslog.1.gz
# /usr/sbin/logrotate /etc/logrotate.conf
gzip: stdin: Input/output error
error: failed to compress log /var/log/syslog.1

Should I backup syslog, delete it, and watch how things evolve?

Many thanks,
Itay

Reco





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.DEB.2.02.1311031415210.12188@gandalf.furmanet

Reply via email to