[Pkg-apache-commits] r1283 - in /trunk/apache2: apache2.2-common.apache2.init changelog

sf at alioth.debian.org sf at alioth.debian.org
Sat Feb 26 14:12:15 UTC 2011


Author: sf
Date: Sat Feb 26 14:12:12 2011
New Revision: 1283

URL: http://svn.debian.org/wsvn/pkg-apache/?sc=1&rev=1283
Log:
Make exit code of '/etc/init.d/apache2 status' more LSB compatible.

Modified:
    trunk/apache2/apache2.2-common.apache2.init
    trunk/apache2/changelog

Modified: trunk/apache2/apache2.2-common.apache2.init
URL: http://svn.debian.org/wsvn/pkg-apache/trunk/apache2/apache2.2-common.apache2.init?rev=1283&op=diff
==============================================================================
--- trunk/apache2/apache2.2-common.apache2.init (original)
+++ trunk/apache2/apache2.2-common.apache2.init Sat Feb 26 14:12:12 2011
@@ -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
 	;;
 	*)

Modified: trunk/apache2/changelog
URL: http://svn.debian.org/wsvn/pkg-apache/trunk/apache2/changelog?rev=1283&op=diff
==============================================================================
--- trunk/apache2/changelog (original)
+++ trunk/apache2/changelog Sat Feb 26 14:12:12 2011
@@ -1,5 +1,7 @@
 apache2 (2.2.17-2) UNRELEASED; urgency=low
 
+  * Make exit code of '/etc/init.d/apache2 status' more LSB compatible.
+    Closes: #613969
   * Add hint in README.Debian about 403 error with mod_dav PUT. Closes: #613438
 
  -- Stefan Fritsch <sf at debian.org>  Sat, 26 Feb 2011 15:04:45 +0100




More information about the Pkg-apache-commits mailing list