[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Frage zu logrotate



* Frank Lanitz <frank@frank.uvena.de> wrote:
> 
> Nur so ein Schuss ins Blaue ohne zu testen: 
> 
> Könnte man nicht 
> 
> /var/log/syslog
> {
>     rotate 7
>     weekly
>     missingok
>     notifempty
>     delaycompress
>     compress
>     postrotate
>         invoke-rc.d rsyslog reload > /dev/null
>     endscript
> }
> 
> /var/log/syslog
> {
>     rotate 7
>     size 10M
>     missingok
>     notifempty
>     delaycompress
>     compress
>     postrotate
>         invoke-rc.d rsyslog reload > /dev/null
>     endscript
> }
> 
> in die Config einbauen und so eine oder-Verknüpfung erzeugen? 

Sowas wirft ein "error: duplicate log entry for /var/log/syslog".
Kann man übrigens mit 'logrotate -d $CONFFILE' recht einfach testen was
logrotate tun würde.

Gruß
Jens


Reply to: