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

Bug#295915: apache2-common: /etc/init.d/apache2 restart is like totally broken.

Package: apache2-common
Version: 2.0.53-4
Severity: important

/etc/init.d/apache2 restart does not work. It always tells me it is already
running, then after a little while, apache2 just dies.

Looking at the init-script, it is caused by the following lines:

echo -n "Forcing reload of web server: Apache2"
sleep 10
$APACHE2CTL startssl

Not only is this racy, its also extremely annoying having to wait for a restart
based on a seemingly randomly chosen value.

Changing the sleep to 20 fixes the problem here, but this is still no real fix.
One way could be having a loop that runs once a second checking if apache2 is
dead; and time out with a error after 60 seconds or so. Several other packages
implements it this way (squid comes to mind).

Funny 10 seconds is too little on a 3Ggz p4 system with no real load...

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-s0p1-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages apache2-common depends on:
ii  apache2-utils               2.0.53-4     utility programs for webservers
ii  debconf               Debian configuration management sy
ii  debianutils                 2.8.4        Miscellaneous utilities specific t
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-18    Berkeley v4.2 Database Libraries [
ii  libexpat1                   1.95.8-1     XML parsing C library - runtime li
ii  libgcc1                     1:3.4.3-6    GCC support library
ii  libmagic1                   4.12-1       File type determination library us
ii  mime-support                3.28-1       MIME files 'mime.types' & 'mailcap
ii  net-tools                   1.60-10      The NET-3 networking toolkit
ii  openssl                     0.9.7e-2     Secure Socket Layer (SSL) binary a
ii  ssl-cert                    1.0-11       Simple debconf wrapper for openssl

-- no debconf information

Reply to: