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

r4271 - in glibc-package/trunk/debian: . script.in



Author: aurel32
Date: 2010-05-19 18:01:30 +0000 (Wed, 19 May 2010)
New Revision: 4271

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/script.in/nsscheck.sh
Log:
  * debian/script.in/nsscheck.sh: correctly detect stopped and running 
    services. Closes: #573247, #575868.



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2010-05-19 17:53:12 UTC (rev 4270)
+++ glibc-package/trunk/debian/changelog	2010-05-19 18:01:30 UTC (rev 4271)
@@ -13,8 +13,10 @@
     debconf depends.  Closes: #581835.
   * debian/debhelper.in/nscd.init: stop supporting the reload argument.
     Closes: #578870.
+  * debian/script.in/nsscheck.sh: correctly detect stopped and running 
+    services. Closes: #573247, #575868.
 
- -- Aurelien Jarno <aurel32@debian.org>  Wed, 19 May 2010 19:27:54 +0200
+ -- Aurelien Jarno <aurel32@debian.org>  Wed, 19 May 2010 19:53:13 +0200
 
 eglibc (2.10.2-8) unstable; urgency=low
 

Modified: glibc-package/trunk/debian/script.in/nsscheck.sh
===================================================================
--- glibc-package/trunk/debian/script.in/nsscheck.sh	2010-05-19 17:53:12 UTC (rev 4270)
+++ glibc-package/trunk/debian/script.in/nsscheck.sh	2010-05-19 18:01:30 UTC (rev 4271)
@@ -17,8 +17,8 @@
 	    rl=$(runlevel | sed 's/.*\ //')
 	    for service in $check; do
 	    	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-	    	    invoke-rc.d ${service} status 2>/dev/null || status=$?
-	    	    if [ "$status" = "0" ] || [ "$status" = "1" ] ; then
+	    	    invoke-rc.d ${service} status 2>/dev/null && status=0 || status=$?
+	    	    if [ "$status" = "0" ] || [ "$status" = "2" ] ; then
 	    	    	services="$service $services"
 	    	    elif [ "$status" = "100" ] ; then
 	    	    	echo "WARNING: init script for $service not found."


Reply to: