Comment 9 for bug 683640

Revision history for this message
Chad Netzer (chad-netzer) wrote :

In order to get my Pacemaker/Corosync lsb resources working correctly, I applied a modified version of Psi-Jack's patch. I'm not sure why he removed the setting of the "specified" local var, but I left that in because I have resources that specify their own path to a pidfile. However, I unconditionally used the pidof check, which has the intended effect of returning 3 (instead of 4) when a resource/daemon is not running.

Here is the patch I'm using (I'll attach it as well):

--- /lib/lsb/init-functions.orig 2009-09-10 04:27:42.000000000 -0700
+++ /lib/lsb/init-functions 2011-04-11 17:59:22.865842039 -0700
@@ -91,7 +91,7 @@
             fi
         fi
     fi
- if [ -x /bin/pidof -a ! "$specified" ]; then
+ if [ -x /bin/pidof ]; then
         status="0"
         /bin/pidof -o %PPID -x $1 || status="$?"
         if [ "$status" = 1 ]; then