> Look for a dead.letter file in /root which may contain any errors of the
> logrotate script.  In my system there is /etc/logrotate.d/syslog-ng which
> contains:
> ===================================
> #
> $Header: 
> /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v
> 1.2 2004/07/18 02:25:02 dragonheart Exp $
> #
> # Syslog-ng logrotate snippet for Gentoo Linux
> # contributed by Michael Sterrett
> #
>
> /var/log/messages {
>     sharedscripts
>     postrotate
>         /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
>     endscript
> }
> ===================================
>
> It seems to rotate the messages log file fine and create compressed backups
> within /var/log.  If you have both scripts then there may be a conflict which
> would probably be captured in dead.letter.
>
> HTH.
> --
> Regards,
> Mick
>
Thanks for that hint, but there was nothing about logrotate in dead.letter.
logrotate itself works fine for me but I want the messages file erased
after rotating and start with a new file and that doesn't work.
any more ideas?

Regards

Jakob
-- 
[EMAIL PROTECTED] mailing list

Reply via email to