Skip to contentSkip to conversation

How to limit the log file size?

DISCUSSION 徐小威的EMAIL 2 participants 2 messages Sep 22, 2005

lore
Share & tools
lore
#0 lore raw

Hi all:

There are some daemon like snmpd, boa...has log file at directory
var, I want to know how to limte it's file size?

Best Regards,
Rober Hsu

#1 lore raw

Hi Rober,

Quoted 4 lines · On Wednesday 21 September 2005 23:07, =E5=BE=90=E5=B0=8F=E5=A8=81=E7=9A=84=…

Hi all:

There are some daemon like snmpd, boa...has log file at directory
var, I want to know how to limte it's file size?

I'm using emlog module (http://www.circlemud.org/~jelson/software/emlog/)=
to=20
create circular buffers that are used as log files instead of regular one= s.=20
You can define the file size when it is created; runs smoothly and=20 flawlessly.

HTH,

--=20
Ricardo Scop.

        \|/
    ___ -*-
   (@ @)/|\
  /  V  \|  R SCOP Consult.
 /(     )\  Linux-based communications

--^^---^^+------------------------------ [email protected]
+55 51 999-36-777
Porto Alegre, RS - BRazil
--
P. S.: "If you don't have time to do it right, when will you have time to do it over?" -- Penny Hines =20