[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

logrotate



Hi All!

I have got a strange problem, every day, a got the following error:

/etc/cron.daily/logrotate:
error: apache2_template:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: apache2_template:13 unexpected }
error: found error in file apache2_template, skipping

I checked /etc/logrotate.conf and did not find any problem:

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

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

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

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}


and i also checked /etc/logrotate.d/apache2, but also did not find anything:

"/var/log/apache2/*.log" {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
                if [ -f /var/run/apache2.pid ]; then
                        /etc/init.d/apache2 restart > /dev/null
                fi
        endscript
}


It is an old ETCH box. I do not remember if i ever changed these config files.
Any suggestions? (Maybe, I am blind?)

vuki



Reply to: