Comment 16 for bug 392532

Revision history for this message
mattwilks (matt-wilks) wrote :

Stefan, running

logrotate -d /etc/logrotate.conf gives me:

reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file apache2
error: error accessing /var/log/apache2: No such file or directory
error: apache2:1 glob failed for /var/log/apache2/*.log
error: found error in /var/log/apache2/*.log , skipping
removing last 1 log configs
error: apache2:11 lines must begin with a keyword or a filename (possibly in double quotes)
error: apache2:12 missing end of line
reading config info for /etc/init.d/apache2 reload > /dev/null
                fi
        endscript
}

Seems it is looking for /var/log/apache2, but the logs seem to be installed in /var/log/apache. If I create a symlink

ln -s /var/log/apache /var/log/apache2

and rerun the logrotate -d command, everything seems OK. I also ran logrotate without the -d debug switch and my apache2 init.d file was not clobbered. So the misnamed log directory seems to be the problem? I don't remember changing the name (its possible I did though) and this was a fresh install...