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

Bug#301702: more info on apache2 logrotate



tag 301702 + patch
thanks

Package: apache2
Version: 2.2.3-3.1

Apache's documentation [1] recommends to do a graceful restart because
"the server can be instructed to open new log files without losing any
existing or pending connections from clients" and doing a normal
restart losses conections from clients and may not come up if there is
a configuration problem.
This graceful restart is done by /etc/init.d/apache2 reload, but doing
this with invoke-rc.d would save as the pid check and also avoid
uneeded restarts from apache (which may happends in the case of a
stale pid file)

[1] http://httpd.apache.org/docs/2.2/logs.html


-- System Information:
Debian Release: testing/unstable
 APT prefers testing
 APT policy: (990, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-amd64-generic
Locale: LANG=es_AR, LC_CTYPE=es_AR (charmap=ISO-8859-1)

Versions of packages apache2 depends on:
ii  apache2-mpm-worker            2.2.3-3.1  High speed threaded model for Apac

apache2 recommends no packages.

-- no debconf information
--- _apache2.orig	2006-12-12 10:57:36.000000000 -0300
+++ apache2	2006-12-12 10:58:26.000000000 -0300
@@ -8,8 +8,6 @@
 	create 640 root adm
 	sharedscripts
 	postrotate
-		if [ -f /var/run/apache2.pid ]; then
-			/etc/init.d/apache2 restart > /dev/null
-		fi
+		invoke-rc.d apache2 restart > /dev/null
 	endscript
 }

Reply to: