logrotate
Pawel Bernadowski
pbern w wilnet.info
Pon, 21 Paź 2002, 07:34:35 CEST
Zainstalowalem od nowa PLD i mam maly problem,
mianowicie nie dziala logrotate...
[root w farma logrotate.d]# grep -v "^$\|^#" /etc/logrotate.conf
weekly
rotate 31
nomail
create 640 root root
compress
nodelaycompress
missingok
olddir /var/log/archiv
notifempty
include /etc/logrotate.d
[root w farma logrotate.d]# grep -v "^$\|^#" /etc/logrotate.d/squid
/var/log/squid/[asc]*.log {
olddir /var/log/archiv/squid
daily
rotate 365
compress
create 660 root squid
postrotate
# signal Squid to restart logging with the new files
/usr/sbin/squid -k rotate
endscript
}
i otrzymuje taki error
[root w farma logrotate.d]# logrotate -v /etc/logrotate.d/squid
reading config file /etc/logrotate.d/squid
reading config info for /var/log/squid/[asc]*.log
olddir is now /var/log/archiv/squid
Handling 1 logs
rotating pattern: /var/log/squid/[asc]*.log after 1 days (365 rotations)
olddir is /var/log/archiv/squid, empty log files are rotated, old logs are
removed
considering log /var/log/squid/access.log
log does not need rotating
considering log /var/log/squid/cache.log
log does not need rotating
considering log /var/log/squid/store.log
log does not need rotating
Kto wie co nie tak ?
Więcej informacji o liście dyskusyjnej pld-users-pl