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

Bug#349441: apache logrotate fails with libapache-mod-chroot installed



Package: apache
Version: 1.3.33-6sarge1
Severity: normal
Tags: patch

The /etc/logrotate.d/apache configuration provided with Sarge fails to
reload Apache when mod_chroot is enabled. As a result, Apache dies and
must be manually restarted. To fix this, the logrotate script must be
modified to stop and start Apache, rather than reloading. See diff
below.

--- /etc/logrotate.d/apache
+++ /etc/logrotate.d/apache
@@ -10,9 +10,11 @@
 	postrotate
 	   if [ -f /var/run/apache.pid ]; then \
 	     if [ -x /usr/sbin/invoke-rc.d ]; then \
-		invoke-rc.d apache reload > /dev/null; \
+		invoke-rc.d apache stop  > /dev/null; \
+		invoke-rc.d apache start > /dev/null; \
 	     else \
-	        /etc/init.d/apache reload > /dev/null; \
+	        /etc/init.d/apache stop  > /dev/null; \
+	        /etc/init.d/apache start > /dev/null; \
 	     fi; \
 	   fi;
 	endscript

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages apache depends on:
ii  apache-common             1.3.33-6sarge1 support files for all Apache webse
ii  debconf                   1.4.30.13      Debian configuration management sy
ii  dpkg                      1.10.28        Package maintenance system for Deb
ii  libc6                     2.3.2.ds1-22   GNU C Library: Shared libraries an
ii  libdb4.2                  4.2.52-18      Berkeley v4.2 Database Libraries [
ii  libexpat1                 1.95.8-3       XML parsing C library - runtime li
ii  libmagic1                 4.12-1         File type determination library us
ii  logrotate                 3.7-5          Log rotation utility
ii  mime-support              3.28-1         MIME files 'mime.types' & 'mailcap
ii  perl                      5.8.4-8sarge3  Larry Wall's Practical Extraction 

-- debconf information excluded



Reply to: