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

Bug#493142: marked as done (apache2.2-common: init.d stop does not wait for Apache to stop)



Your message dated Mon, 15 Feb 2010 21:34:44 +0100
with message-id <201002152134.44684.sf@sfritsch.de>
and subject line fixed in lenny, etch is end-of-life
has caused the Debian Bug report #493142,
regarding apache2.2-common: init.d stop does not wait for Apache to stop
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
493142: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493142
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apache2.2-common
Version: 2.2.3-4+etch5
Severity: minor
Tags: patch

Hi,

The current init.d script for Apache2 calls the function apache_stop
when using /etc/init.d/apache2 stop, and the function apache_sync_stop
when using /etc/init.d/apache2 restart.

So, when executing
/etc/init.d/apache2 stop ; /etc/init.d/apache2 start
it does not always restart apache2 (as would do /etc/init.d/apache2
restart), because the init.d stop returns without waiting for apache2
to start, and the init.d start sees that apache2 is still running so
it doesn't start a new instance of Apache.

Here we use monit to monitor Apache, but monit uses
init.d stop ; init.d start
to restart a service, so it often fails restarting Apache.

Could it be possible to modify the init.d script ?
(I don't really think it is useful for init.d stop to return before
Apache 2 has really stopped ...)

Thank you very much !

[Some simple patch follows.]


-- 
Michel "Michou" <blockelet@crans.org>


Things not very important :

-- A simple patch :
> --- old/apache2         2008-07-31 18:39:38.000000000 +0200
> +++ /etc/init.d/apache2 2008-07-31 18:40:01.000000000 +0200
> @@ -134,7 +134,7 @@
>         ;;
>         stop)
>                 log_begin_msg "Stopping web server (apache2)..."
> -               if apache_stop; then
> +               if apache_sync_stop; then
>                          log_end_msg 0
>                  else
>                          log_end_msg 1          


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages apache2.2-common depends on:
ii  apache2-utils              2.2.3-4+etch5 utility programs for
webservers
ii  libmagic1                  4.17-5etch3   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

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


--- End Message ---
--- Begin Message ---
You have filed a bug against the Debian Etch version of apache2. The 
bug is fixed in the current developement version of the apache2 
package but was not considered severe enough to warrant an update in 
Debian Etch. Since the support for Debian Etch is ending, I am closing 
the bug now.


--- End Message ---

Reply to: