Re: clamav-daemon + logrotate
Rasul Gasanov <rasul.gasanov@gmail.com> wrote:
> А что с logrotate-скриптом для сабжевого демона случилось? После апдейта
> начали сыпаться ошибки от logrotate:
> ===
> Subject: Cron <root@gladiator> test -x /usr/sbin/anacron || run-parts
> --report /etc/cron.daily
> /etc/cron.daily/logrotate:
> error: clamav-daemon:1 lines must begin with a keyword or a filename
> (possibly in double quotes)
> error: clamav-daemon:10 unxpected }
> run-parts: /etc/cron.daily/logrotate exited with return code 1
> ===
> rasul@gladiator:/etc/logrotate.d$ less clamav-daemon
> 0 {
/var/log/clamav/clamd.log /var/log/clamav/freshclam.log {
> rotate 12
> weekly
> compress
> delaycompress
> create 640 clamav adm
> postrotate
> [ ! -f /var/run/clamav/clamd.pid ] || kill -HUP `cat
> /var/run/clamav/clamd.pid` > /dev/null
> endscript
> }
> Я так понимаю, что ему помеченное стартовый 0 не нравиться. В мане на
> logrotate про такую форму записи ничего нет. Как пофиксить-то?
Добавь
deb http://people.debian.org/~sgran/debian sarge main
deb-src http://people.debian.org/~sgran/debian sarge main
в /etc/apt/sources.list и обновись до 0.87.1
> rasul@gladiator:~$ dpkg -l logrotate clamav-daemon|grep ^ii
> ii logrotate 3.7-5 Log rotation utility
> ii clamav-daemon 0.84-2.sarge.6 antivirus scanner daemon
Буёё, оно у тебя еще все логи freshclam не засрало воплями об outdated?
Reply to: