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

Bug#398223: Acknowledgement (apache2: "[notice] caught SIGTERM, shutting down")



On Sun, 2007-01-07 at 23:06 +0800, Clayton wrote:
> After enduring seven consecutive Sunday morning Apache2 shutdowns (ie. this is REALLY reproducible on my end) I commented out the following in my one SSL-enabled virtual host:
> 
> NameVirtualHost *:443
> <VirtualHost *:443>
>         DocumentRoot /var/www/langex
>         ServerName www.langex.net
>         ServerAlias server langex.net *.langex.net
>         CustomLog /var/log/apache2/access.log combined
>         # SSLEngine on
>         # SSLCertificateFile /etc/apache2/ssl/langex.self.crt
>         # SSLCertificateKeyFile /etc/apache2/ssl/langex.net.key
> </VirtualHost>
> 
> No more spontaneous shutdowns. In other words, with the SSL stuff above turned on, Apache2 shuts down every Sunday morning. With it commented out as above, I have now gotten through two Sundays without a shutdown.
> 
> Sure looks like SSL has something to do with this, at least tangentially.

Hmm, apache2 invokes logrotate weeky, so maybe there's a bug in the
logrotate script. I'd change /etc/logrotate/apache2 to:

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

and see what happens.

 HTH, Ralf Mattes



Reply to: