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 ** Patch added: "Unconditionally use pidof to test if daemon is running or not" https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/683640/+attachment/2026229/+files/init-functions.pidof_fix.patch -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to bind9 in Ubuntu. https://bugs.launchpad.net/bugs/683640 Title: status_of_proc is returning incorrect error code -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs