--- /etc/logrotate.d/apache2.orig 2009-04-01 09:06:15.000000000 -0700 +++ /etc/logrotate.d/apache2 2011-01-29 17:38:48.000000000 -0800 @@ -8,7 +8,9 @@ create 640 root adm sharedscripts postrotate - if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then + APACHE_PID_FILE=/var/run/apache2.pid + [ -f /etc/apache2/envvars ] && . /etc/apache2/envvars + if [ -f "${APACHE_PID_FILE}" ]; then /etc/init.d/apache2 reload > /dev/null fi endscript