tag 545896 + patch
thanks

The unknown status (4) is still be returned from /lib/lsb/init-functions
when the pid file is specified. I plan to do a full bug report
hopefully this week. Just wanted to get this reported in case I don't.
The problem I believe is a bad check for
"specified" pid file in the /lib/lsb/init-functions

I have attached a patch with the fix. Its a simple patch and should
work for stable and unstable.
I did some testing with the unstable package on a stable box. I will
test on unstable tomorrow and follow up.

Thanks,
Keith.
diff -Nru lsb-3.2/debian/changelog lsb-3.2/debian/changelog
--- lsb-3.2/debian/changelog	2008-08-18 21:34:25.000000000 +0000
+++ lsb-3.2/debian/changelog	2009-10-20 15:14:38.000000000 +0000
@@ -1,3 +1,10 @@
+lsb (3.2-20.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fixed check for specified pid file (Close: #545896 #494623)
+
+ --  <fugi...@gmail.com>  Tue, 20 Oct 2009 15:13:38 +0000
+
 lsb (3.2-20) unstable; urgency=low
 
   * Revert change in 3.2-16 that broke killproc due to my misunderstanding
diff -Nru lsb-3.2/init-functions lsb-3.2/init-functions
--- lsb-3.2/init-functions	2008-08-18 21:32:36.000000000 +0000
+++ lsb-3.2/init-functions	2009-10-20 15:13:36.000000000 +0000
@@ -90,7 +90,7 @@
             fi
         fi
     fi
-    if [ -x /bin/pidof -a ! "$specified" ]; then
+    if [ -x /bin/pidof -a "$specified" ]; then
         status="0"
         /bin/pidof -o %PPID -x $1 || status="$?"
         if [ "$status" = 1 ]; then

Reply via email to