Re: was logrotatet /var/log/messages ?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
> > ich habe weder in /etc/logrotate.conf, noch in /etc/logrotate.d/*
> > einen Eintrag für /var/log/messages, /var/log/mail.* etc gesehen,
> > trotzdem werden die offenbar rotiert und leider zu früh
> > weggeworfen.
> >
> > grep -R logrotate /etc/cron* /etc/init.d/*
> > brachte auch keinen Hinweis.
> >
> > Weiß jemand, wie das geschieht und wo ich es konfigurieren kann?
>
> /etc/cron.{daily,weekly}/sysklogd.
>
> Das sind beides Konfigurationsdateien, in denen Du "herumschmieren"
> darfst und die Du fuer Deine eigenen, speziellen, non-default
> Zwecke anpassen sollst/darfst.
>
> Erklaere mal "zu früh".
Zu früh würde heissen, ich stelle es in /etc/logrotate.conf anders
ein und er rotiert sie trotzdem täglich. Das war zu mindestens mein
Problem bei potato. Ich musste mehrere Shellscripts in den
/etc/cron.{daily,weekly}/* durchgehen um für alle logfiles das
Verhalten zu ändern.
/etc/cron.{daily,weekly}/sysklogd reicht da leider nicht aus, weil
auch andere Programme ihre Logfiles selber rotieren wollen.
Leider lautet die entsprechende policy
Log files must be rotated occasionally so that they don't grow
indefinitely; the best way to do this is to drop a log rotation
configuration file into the directory `/etc/logrotate.d' and use
the
facilities provided by logrotate.[1] Here is a good example for a
logrotate config file (for more information see logrotate(8))
Etwas unverbindlich. So bleibt die Sache inkonsitent.
Hendrik
- --
PGP ID 21F0AC0265C92061
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.3 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8pHV+IfCsAmXJIGERAssOAJ9edG6BrnHb7Zg06LxlNYa1RrHN4gCdF2pe
22FDzVS1FtOTsZPdTVQOf0Q=
=tQIs
-----END PGP SIGNATURE-----
--
Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-request@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Reply to: