Re: Frage zu logrotate - macht nicht was es soll?
Am Samstag 02 Mai 2009 01:17:36 schrieb Jens Schüßler:
> * Christian Knorr <debian-mailingliste@online.de> wrote:
> > Am Freitag 01 Mai 2009 14:18:14 schrieb Jens Schüßler:
> > > logrotate -d /etc/logrotate.d/apache2
> >
> > logrotate: command not found
>
> Ähm, das sollte man natürlich als root machen, bzw. wenn als User mit
> /usr/sbin/logrotate aufrufen.
Oh wie blöd, hatte es mit sudo gemacht, aber ohne den Pfad. Also nochmal:
sudo /usr/sbin/logrotate -d /etc/logrotate.d/apache2
reading config file /etc/logrotate.d/apache2
reading config info for /var/log/apache2/*.log
Handling 1 logs
rotating pattern: /var/log/apache2/*.log weekly (52 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/apache2/access.log
log does not need rotating
considering log /var/log/apache2/error.log
log does not need rotating
considering log /var/log/apache2/intranet_access.log
log does not need rotating
considering log /var/log/apache2/intranet_error.log
log does not need rotating
considering log /var/log/apache2/public_access.log
log does not need rotating
considering log /var/log/apache2/public_error.log
log does not need rotating
considering log /var/log/apache2/webcam_access.log
log does not need rotating
considering log /var/log/apache2/webcam_error.log
log does not need rotating
not running shared postrotate script, since no logs were rotated
> Gruß
> Jens
Reply to: