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" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED], [EMAIL PROTECTED] (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
signature.asc
Description: Ceci est une partie de message numériquement signée