Comment 8 for bug 1159748

Revision history for this message
Juan Pablo Marco Cardona (juanpablo-marcocardona) wrote : Re: Ramdom apache2 crash in Ubuntu 12.04 (

Hello again,
finally i find the cause of this issue.

The problem happens every time logrotate rotate the apache logs.

cat /etc/logrotate.d/apache2

/var/log/apache2/*.log {
        rotate 52
        create 640 root adm
                /etc/init.d/apache2 reload > /dev/null
                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
                        run-parts /etc/logrotate.d/httpd-prerotate; \
                fi; \

In fact, every time a "/etc/init.d/apache2 reload" is run, the apache2 dies.
Then, executing "/etc/init.d/apache2 restart" instead every time logrotate rotate the apache2 logs, should fix the problem.

Anyway, this is just a workaround, because the apache shouldn't die every time a reload is executed, right?

Thanks in advance

P.D: Maybe this bugs are related?