logrotate problem (maybe)

Michael Zoet Michael.Zoet at zoet.de
Sun May 10 10:47:45 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Imre Gergely schrieb:
> Björn Torkelsson wrote:
>
>> Read /usr/share/doc/logrotate/README.Debian
>>
>
> Ouch... is this a Debian 'invention', or do other distros use it?

It is a Unix/Linux invention ;-). Before logrotate syslog was invented
:-). (Normaly) You only need logrotate to rotate logs for daemons like
apache that normally do not use syslog. But you can use logrotate to
rotate syslog log files. You only have to make certain that syslog is
stopped when logrotate rotates syslog log files. How this can be done
is documented in the man page of logrotate. Or you can convince your
MTA software not to use syslog and configure logrotate accordingly. Or
you could configure syslog to do what you want ;-).

To make things worse: there are many different syslog
implementations... I stopped keeping track of them and their features...

> Anybody care to enlighten me why this is good? Some pointers to a
> maillist discussion maybe?
> How can it be disabled without messing with /etc/syslog.conf ?
>
> ...
>
> So I still don't know where the mail.log, mail.info and mail.warn get
> rotated.
>

I think you should also read the syslog documentation. I can not tell
it by heart but I think syslog rotates by "size and time criterias".
Whichever comes first. This means if you have a heavy mail site, your
mail logs will be rotated because of the size criteria and not the
time criteria. But I may be wrong. The syslog software has changed in
Debian ( and Ubuntu ) several times and I am tired of reading every
now and then about different syslog documentation. So for now I take
the syslog configuration as it is provided by the package
maintainer... (I only change what syslog messages go into which file).
The maintainers know how the things work with the current preferred
syslog software.


Michael



- --
Michael Zoet
Webseite: http://zoet.de
Jabber: michazoet at jabber.c-base.org

Ubuntu Deutschland e.V.
Ubuntu-Berlin
c-base e.V.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKBrDQBvfZ5167qr8RApMlAKDVFRjAf3aoQq1iSdHwzQC6b2HoGwCcDOcn
S/nP2LvbtNEpa+4OmAAiyY8=
=TxjO
-----END PGP SIGNATURE-----





More information about the ubuntu-server mailing list