commit d64e7141e8bb85d10be3839b5de4ed2a56697339
Author: Christian Schneider <christian.schneider@aoe.com>
Date:   Thu May 5 09:51:42 2016 +0200

    Fix init script return status
    
    In the original variant, function status() overwrite $rtrn 'in global
    scope' which leads to a pretended failing stop() function and
    respectively failing initscript when called with action stop.
    
    References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686548
    Signed-off-by: Christian Schneider <christian.schneider@aoe.com>
    Signed-off-by: Christoph Berg <myon@debian.org>

diff --git a/mcp/pacemaker.in b/mcp/pacemaker.in
index 7da7d9c..5e00e27 100644
--- a/mcp/pacemaker.in
+++ b/mcp/pacemaker.in
@@ -59,13 +59,13 @@ notify()
 status()
 {
 	pid=$(pidof $1 2>/dev/null)
-	rtrn=$?
-	if [ $rtrn -ne 0 ]; then
+	my_rtrn=$?
+	if [ $my_rtrn -ne 0 ]; then
 		echo "$1 is stopped"
 	else
 		echo "$1 (pid $pid) is running..."
 	fi
-	return $rtrn
+	return $my_rtrn
 }
 
 # rpm based distros
