cron.daily/logrotate: amavis: unexpected text

Warum Debian und/oder eine seiner Spielarten? Was muss ich vorher wissen? Wo geht es nach der Installation weiter?
Antworten
Hans T.
Beiträge: 55
Registriert: 09.10.2003 00:04:02

cron.daily/logrotate: amavis: unexpected text

Beitrag von Hans T. » 17.08.2007 11:12:27

Hi

Ich bekomme folgende Mail

/etc/cron.daily/logrotate:
error: amavis:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: amavis:2 unexpected text
error: amavis:3 unexpected text
error: amavis:4 unexpected text
error: amavis:5 unexpected text
error: amavis:6 unexpected text
error: amavis:7 unexpected text
error: amavis:8 unexpected text
error: amavis:prerotate or postrotate without endscript
run-parts: /etc/cron.daily/logrotate exited with return code 1

logrotate.conf verweist auf /etc/logrotate.d und
/etc/logrotate.d/amavis sagt:

/var/log/amavis.log {
monthly
missingok
copytruncate
notifempty
rotate 4
compress
create 640 root adm
postrotate
/etc/init.d/amavis restart 2> /dev/null || true
endscript
}

Ich kann da aber bei bestem Willen keinen Fehler entdecken. Log geschrieben wird weiterhin in die amavis.log.0, obwohl die amavis.log angelegt wurde. Hat dazu einer eine Idee?

Danke,
Hans

Antworten