[Pluto-help] Pluto: logrotate non funziona

Andrea Iacopini enkeli a tin.it
Lun 23 Set 2002 17:31:15 CEST


Salve ragazzi,
il problema è banale ma al momento non ho risorse se non voi.
Ho configurato il file logrotate.conf per "logruotare" il file pippo.log
presente il /var/log/pippo/pippo.log
Non funziona con una configurazione praticamente di default e
funzionante su altre macchine.
Vi allego il file.
####
# /etc/logrotate.conf
#
# logrotate is designed to ease administration of systems that generate
large
# numbers of log files.  It allows automatic rotation, compression,
removal, and
# mailing of log files.  Each log file may be handled daily, weekly,
monthly, or
# when it grows too large.
#
# logrotate is normally run daily from root's crontab.
#
# For more details, see "man logrotate".

# rotate log files daily:
daily

# keep 30 weeks worth of backlogs:
rotate 30

# create new (empty) log files after rotating old ones:
create

# uncomment this if you want your log files compressed:
compress


# some packages install log rotation information in this directory:
# include /etc/logrotate.d

# Rotate /var/log/wtmp:
 /var/log/wtmp {
     monthly
     create 0664 root root
     rotate 1
 }

# Rotate /var/log/pippo/pippo.log
 /var/log/pippo/pippo.log {
                           daily
                           rotate 60
                           copytruncate
                           postrotate
                                     /bin/killall -HUP syslogd
                           endscript
                           compress
                           create 0664 root root
}
####

Oh beh intanto grazie..

Cheers,

A.
----
"The two most important things are: if you don't need it, turn it off;
if you do need it, patch it."
L. Spitzner






More information about the pluto-help mailing list