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

Bug#613969: marked as done (/etc/init.d/apache2 status fails to comply with LSB spec)



Your message dated Thu, 29 Sep 2011 19:56:13 +0000
with message-id <E1R9MiL-00063v-Nk@franck.debian.org>
and subject line Bug#613969: fixed in apache2 2.2.16-6+squeeze4
has caused the Debian Bug report #613969,
regarding /etc/init.d/apache2 status fails to comply with LSB spec
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.)


-- 
613969: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613969
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apache2.2-common
Version: 2.2.16-6
Severity: normal
Tags: patch

As shipped the init script for Apache2 fails to return LSB compliant error codes when the status is queried. This is important when using LSB scripts with clustering solutions such as Pacemaker[1] that require init scripts to return correct error codes. 

The following patch fixes the apache2 init script to return the correct codes when quering status according to the LSB spec[2]. Please consider including the patch in a future point release update. 

Thanks!

Patch:
--- apache2.2-common.apache2.init	2011-02-18 14:49:37.000000000 +0000
+++ /etc/init.d/apache2	2011-02-18 14:48:04.000000000 +0000
@@ -266,7 +266,11 @@
 			exit 0
 		else
 			echo "Apache2$DIR_SUFFIX is NOT running."
-			exit 1
+			if [ -e "$PIDFILE" ]; then
+				exit 1
+			else
+				exit 3
+			fi
 		fi
 	;;
 	*)

[1] http://www.linux-ha.org/wiki/LSB_Resource_Agents
[2] http://refspecs.freestandards.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

-- Package-specific info:
List of enabled modules from 'apache2 -M':
  alias auth_basic authn_file authz_default authz_groupfile
  authz_host authz_user autoindex cgid deflate dir env mime
  negotiation reqtimeout setenvif status

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apache2 depends on:
ii  apache2-mpm-worker            2.2.16-6   Apache HTTP Server - high speed th
ii  apache2.2-common              2.2.16-6   Apache HTTP Server common files

apache2 recommends no packages.

apache2 suggests no packages.

Versions of packages apache2.2-common depends on:
ii  apache2-utils           2.2.16-6         utility programs for webservers
ii  apache2.2-bin           2.2.16-6         Apache HTTP Server common binary f
ii  libmagic1               5.04-5           File type determination library us
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  mime-support            3.48-1           MIME files 'mime.types' & 'mailcap
ii  perl                    5.10.1-17        Larry Wall's Practical Extraction 
ii  procps                  1:3.2.8-9        /proc file system utilities

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: apache2
Source-Version: 2.2.16-6+squeeze4

We believe that the bug you reported is fixed in the latest version of
apache2, which is due to be installed in the Debian FTP archive:

apache2-dbg_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-dbg_2.2.16-6+squeeze4_i386.deb
apache2-doc_2.2.16-6+squeeze4_all.deb
  to main/a/apache2/apache2-doc_2.2.16-6+squeeze4_all.deb
apache2-mpm-event_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-mpm-event_2.2.16-6+squeeze4_i386.deb
apache2-mpm-itk_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-mpm-itk_2.2.16-6+squeeze4_i386.deb
apache2-mpm-prefork_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-mpm-prefork_2.2.16-6+squeeze4_i386.deb
apache2-mpm-worker_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-mpm-worker_2.2.16-6+squeeze4_i386.deb
apache2-prefork-dev_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-prefork-dev_2.2.16-6+squeeze4_i386.deb
apache2-suexec-custom_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-suexec-custom_2.2.16-6+squeeze4_i386.deb
apache2-suexec_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-suexec_2.2.16-6+squeeze4_i386.deb
apache2-threaded-dev_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-threaded-dev_2.2.16-6+squeeze4_i386.deb
apache2-utils_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2-utils_2.2.16-6+squeeze4_i386.deb
apache2.2-bin_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2.2-bin_2.2.16-6+squeeze4_i386.deb
apache2.2-common_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2.2-common_2.2.16-6+squeeze4_i386.deb
apache2_2.2.16-6+squeeze4.diff.gz
  to main/a/apache2/apache2_2.2.16-6+squeeze4.diff.gz
apache2_2.2.16-6+squeeze4.dsc
  to main/a/apache2/apache2_2.2.16-6+squeeze4.dsc
apache2_2.2.16-6+squeeze4_i386.deb
  to main/a/apache2/apache2_2.2.16-6+squeeze4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 613969@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefan Fritsch <sf@debian.org> (supplier of updated apache2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 26 Sep 2011 00:12:23 +0200
Source: apache2
Binary: apache2.2-common apache2.2-bin apache2-mpm-worker apache2-mpm-prefork apache2-mpm-event apache2-mpm-itk apache2-utils apache2-suexec apache2-suexec-custom apache2 apache2-doc apache2-prefork-dev apache2-threaded-dev apache2-dbg
Architecture: source all i386
Version: 2.2.16-6+squeeze4
Distribution: squeeze
Urgency: low
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Stefan Fritsch <sf@debian.org>
Description: 
 apache2    - Apache HTTP Server metapackage
 apache2-dbg - Apache debugging symbols
 apache2-doc - Apache HTTP Server documentation
 apache2-mpm-event - Apache HTTP Server - event driven model
 apache2-mpm-itk - multiuser MPM for Apache 2.2
 apache2-mpm-prefork - Apache HTTP Server - traditional non-threaded model
 apache2-mpm-worker - Apache HTTP Server - high speed threaded model
 apache2-prefork-dev - Apache development headers - non-threaded MPM
 apache2-suexec - Standard suexec program for Apache 2 mod_suexec
 apache2-suexec-custom - Configurable suexec program for Apache 2 mod_suexec
 apache2-threaded-dev - Apache development headers - threaded MPM
 apache2-utils - utility programs for webservers
 apache2.2-bin - Apache HTTP Server common binary files
 apache2.2-common - Apache HTTP Server common files
Closes: 613438 613969 615632 615866 627061
Changes: 
 apache2 (2.2.16-6+squeeze4) squeeze; urgency=low
 .
   * Fix CVE-2011-3348: Possible denial of service in mod_proxy_ajp
     if combined with mod_proxy_balancer.
   * Make exit code of '/etc/init.d/apache2 status' more LSB compatible.
     Closes: #613969
   * Fix typo in init script. Closes: #615866
   * For multiple instance setups, correctly determine the config dir in the
     init script if it is called via a start/stop link. Closes: #627061
   * Add hint in README.Debian about 403 error with mod_dav PUT.
     Closes: #613438
   * Add hint in README.Debian about how to increase max number of open
     files. Closes: #615632
   * Make it clear in README.multiple-instances that the MPMs are shipped
     in the apache2.2-bin package.
   * Tweak patch header to fix "dpatch unapply" with unstable's patch/dpatch.
Checksums-Sha1: 
 d9927a8419c444163e8465e0f522a8bc1c31656f 1832 apache2_2.2.16-6+squeeze4.dsc
 6f354ec6dd228148324d314fe934f9660e012309 215772 apache2_2.2.16-6+squeeze4.diff.gz
 cac80300e795f42ac025cbef0389a730c1448f8b 2304436 apache2-doc_2.2.16-6+squeeze4_all.deb
 7de1a8ea3839fd65b24358744e892d2c715ac100 307998 apache2.2-common_2.2.16-6+squeeze4_i386.deb
 80936e1d730ee2c5c16cf146ed93ce88e6ae14fb 1350528 apache2.2-bin_2.2.16-6+squeeze4_i386.deb
 e4cf86b6c5e5a708d55284207e9c484305dbe989 2230 apache2-mpm-worker_2.2.16-6+squeeze4_i386.deb
 3407a9bd0a1b72100eb52765da69f27e7183d4bf 2284 apache2-mpm-prefork_2.2.16-6+squeeze4_i386.deb
 52a22b29035db4e4c2973547e231fe1a88a83f6e 2262 apache2-mpm-event_2.2.16-6+squeeze4_i386.deb
 ff5a30216efef255833b7ce6ffb24c7f9b2ceac2 2288 apache2-mpm-itk_2.2.16-6+squeeze4_i386.deb
 c6f27d4826a8d681c53c637f4931444d09808ab8 164838 apache2-utils_2.2.16-6+squeeze4_i386.deb
 74451417047b0df704a13dffa4f618e3eae8bc46 99338 apache2-suexec_2.2.16-6+squeeze4_i386.deb
 a95015250d41956b8c23f1c7d12c53d013544a41 100890 apache2-suexec-custom_2.2.16-6+squeeze4_i386.deb
 b71b4f0ad4c2cdb9c208665a227d9a1213d3356e 1388 apache2_2.2.16-6+squeeze4_i386.deb
 a458e7392c747116a75d900660d7723d418bc9b4 137246 apache2-prefork-dev_2.2.16-6+squeeze4_i386.deb
 bd6bbc0939d638d742459c3a670df97c4beb3fcb 138380 apache2-threaded-dev_2.2.16-6+squeeze4_i386.deb
 55e75d3362255c419a7f0b5c5cfe67731f24df4e 2681436 apache2-dbg_2.2.16-6+squeeze4_i386.deb
Checksums-Sha256: 
 6d79eba455faa86cb1c4ff40216844eccb360a54557ce3d241a126ef359d6909 1832 apache2_2.2.16-6+squeeze4.dsc
 f9ba43d4b061e8d53377b0f78791c8009066e5e05bf8d44e087a28843708c087 215772 apache2_2.2.16-6+squeeze4.diff.gz
 8f0a9a40094d7b0180bfdaa016ef67a309bdd20af4786af90b41fbe7c3370dc2 2304436 apache2-doc_2.2.16-6+squeeze4_all.deb
 cced924c53a4b624d99edc0744f400581e8fac79ba39ae93d6cfb0e79e4d4e6e 307998 apache2.2-common_2.2.16-6+squeeze4_i386.deb
 d797c074d44085f1ad124f1529f8cbde60b1deb2097d397322871b67e9c5bde5 1350528 apache2.2-bin_2.2.16-6+squeeze4_i386.deb
 aae86c587bf44ff66ba9f57af68c51738fb2b4c358c867691e5bc548d275434f 2230 apache2-mpm-worker_2.2.16-6+squeeze4_i386.deb
 ac55817ef13e2521b3b287b1a7017b28e8aa84b0d197516fa24f4aca6acb7591 2284 apache2-mpm-prefork_2.2.16-6+squeeze4_i386.deb
 bdc35a8c9b6cfa32a91d056f51f68788795c1960148bd81ea3e3956e01a13b9b 2262 apache2-mpm-event_2.2.16-6+squeeze4_i386.deb
 996fb044f17ffea8b400f16253a2f64373bbbad8a91a8c89a64a858fda3a079c 2288 apache2-mpm-itk_2.2.16-6+squeeze4_i386.deb
 7b9ca84cdba7cab0f27ff364e4a522d899a0e54736f2b65d4605585b6b76dd7d 164838 apache2-utils_2.2.16-6+squeeze4_i386.deb
 e3f3abf60c7a8cefa646f03bc34f9f0c7c6643b35c3b69919e7ff20106fe7a74 99338 apache2-suexec_2.2.16-6+squeeze4_i386.deb
 8931d7bd74d4c43a5a433789cbe66c77d21c037103743f9f6dd58c3655e34aba 100890 apache2-suexec-custom_2.2.16-6+squeeze4_i386.deb
 111b50bb460397afd64788f2687fea06f697ae060729c8a64acf2353db92eabb 1388 apache2_2.2.16-6+squeeze4_i386.deb
 6e067bb0ad344adf0a73f158b55260c20882d7e4a3049f376ceb8ab4bb81f1e6 137246 apache2-prefork-dev_2.2.16-6+squeeze4_i386.deb
 8d627d46e2f259f93f9414ffe0c0ddf04d422bacb80920f2f471e6011a6b061c 138380 apache2-threaded-dev_2.2.16-6+squeeze4_i386.deb
 2c9fd97ee55ad2b9e75c3b01f81f17fbe7ad24347e821d0ed284500c08f0af06 2681436 apache2-dbg_2.2.16-6+squeeze4_i386.deb
Files: 
 e6308669ef4395747424354816a5afa4 1832 httpd optional apache2_2.2.16-6+squeeze4.dsc
 e30f73fe01660ea23260942078bac00c 215772 httpd optional apache2_2.2.16-6+squeeze4.diff.gz
 0535f71b88d8461fdaa76cc07ca6586d 2304436 doc optional apache2-doc_2.2.16-6+squeeze4_all.deb
 8573183b344d34486be87773d157979c 307998 httpd optional apache2.2-common_2.2.16-6+squeeze4_i386.deb
 c9aeaa0a76ea1975327a836bd2e5a6d1 1350528 httpd optional apache2.2-bin_2.2.16-6+squeeze4_i386.deb
 b987c731c1f3c206d5683b79788b93d9 2230 httpd optional apache2-mpm-worker_2.2.16-6+squeeze4_i386.deb
 2d3c9ba46bfd4e3250a7cf3f327bd12c 2284 httpd optional apache2-mpm-prefork_2.2.16-6+squeeze4_i386.deb
 cf2913cdb11a932007fb4b614a35d12a 2262 httpd optional apache2-mpm-event_2.2.16-6+squeeze4_i386.deb
 dcd781be83a2b507451f412e96e22479 2288 httpd extra apache2-mpm-itk_2.2.16-6+squeeze4_i386.deb
 20f392d0e06b0a4f13a357f6b84d70e0 164838 httpd optional apache2-utils_2.2.16-6+squeeze4_i386.deb
 1a39ad0026f07439eb93fe1d88be9fbc 99338 httpd optional apache2-suexec_2.2.16-6+squeeze4_i386.deb
 535ec7005cc4952299cd32726df5a2ad 100890 httpd extra apache2-suexec-custom_2.2.16-6+squeeze4_i386.deb
 baf43293a210d8e1cc2d4dcd03ce1200 1388 httpd optional apache2_2.2.16-6+squeeze4_i386.deb
 c35322697cec312123406b0efa998538 137246 httpd extra apache2-prefork-dev_2.2.16-6+squeeze4_i386.deb
 67f9f183a4f0786ac8dffe5e433b2411 138380 httpd extra apache2-threaded-dev_2.2.16-6+squeeze4_i386.deb
 fb5f66ae6b0a95a06b27b7768ce85f43 2681436 debug extra apache2-dbg_2.2.16-6+squeeze4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD4DBQFOg5IYbxelr8HyTqQRArC+AJinAMjn0cPDriPXhg14B8vhKfoRAJ9ahIdw
iLZm+e5eY1ot/LQOtWgGOA==
=Yj/g
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: