Hi,

I would also like to propose a patch to address this bug.

I tried to provide an updated package, but are not able to find the init sript 
in the source package. Hopefully someone with a bit deeper knowledge can adapt 
or use the patch to fix the init script.

If there is anybody who likes to support me in fixing it directly in the 
package - please let me know!


Best regards
Christian
Description: This patch fixes a small bug in pacemakers init script.
 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.
Author: Christian Schneider <[email protected]>
Forwarded: no
Last-Updated: 2016-04-21
--- a/pacemaker	2016-04-21 19:05:08.816662271 +0200
+++ b/pacemaker	2016-04-21 19:07:57.086371791 +0200
@@ -49,13 +49,13 @@
 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

Reply via email to