Bug#439027: apache2.2-common: /etc/init.d/apache2 doesn't consistently use apache2ctl
Package: apache2.2-common
Version: 2.2.3-4+etch1
Severity: important
Tags: patch
At current, apache2ctl isn't always used to interact with apache.
This can make the stop and reload functions fail if envvars is used to modify certain aspects of apache's core paths.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages apache2.2-common depends on:
ii apache2-utils 2.2.3-4+etch1 utility programs for webservers
ii libmagic1 4.17-5etch2 File type determination library us
ii lsb-base 3.1-23.2etch1 Linux Standard Base 3.1 init scrip
ii mime-support 3.39-1 MIME files 'mime.types' & 'mailcap
ii net-tools 1.60-17 The NET-3 networking toolkit
ii procps 1:3.2.7-3 /proc file system utilities
apache2.2-common recommends no packages.
-- no debconf information
--- apache2.orig 2007-08-21 09:33:52.000000000 -0400
+++ apache2 2007-08-21 09:36:37.000000000 -0400
@@ -29,7 +29,6 @@
exit 0;
fi
-APACHE2="$ENV /usr/sbin/apache2"
APACHE2CTL="$ENV /usr/sbin/apache2ctl"
pidof_apache() {
@@ -64,9 +63,9 @@
}
apache_stop() {
- if `apache2 -t > /dev/null 2>&1`; then
+ if `$APACHE2CTL configtest > /dev/null 2>&1`; then
# if the config is ok than we just stop normaly
- $APACHE2 -k stop
+ $APACHE2CTL stop
else
# if we are here something is broken and we need to try
# to exit as nice and clean as possible
Reply to: