Package: apache2-commonVersion: 2.0.54-5sarge1Package: apache2.2-commonVersion:
2.2.3-4In the logrotate config file for Apache (/etc/logrotate.d/apache2), the
"restart" command is used to tell Apache to use the new logfiles after they
have been rotated. This is kind of harsh since it's a full stop & start of the
server. It also causes problems for people using SSL certificates for which the
key is encrypted, and thus needs a passphrase to be typed in everytime Apache
starts.Here's the relevant part of /etc/logrotate.d/apache2 : postrotate
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 restart > /dev/null fi endscriptMay
I suggest that "restart" be changed for "reload", which has the same effect
regarding logfile rotation, does not require the passphrase to be re-entered,
and is less harsh overall. postrotate if [ -f
/var/run/apache2.pid ]; then /etc/init.d/apache2 reload
> /dev/null fi endscript
I am using Debian 3.1 (sarge) with Apache2 and also Debian 4.0 (etch) with
Apache 2.2.Thank you.
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx