Blame SOURCES/bz1765128-mysql-galera-fix-incorrect-rc.patch

734564
From c718050a4a2bb47d640af1d8e19995590755670f Mon Sep 17 00:00:00 2001
734564
From: Valentin Vidic <vvidic@debian.org>
734564
Date: Wed, 23 Oct 2019 22:04:44 +0200
734564
Subject: [PATCH] Low: mysql-common: fix startup check
734564
734564
PID value is not capture correctly so the startup
734564
fails with the wrong exit code.
734564
734564
Starting 'mysql' case 8 'check lib file':
734564
Setting agent environment:    export OCF_RESKEY_CRM_meta_timeout=15000
734564
Setting system environment:   chmod u-w /var/lib/mysql
734564
Running agent:                ./mysql start
734564
ERROR: The agent was hanging, killed it, maybe you damaged the agent or system's environment, see details below:
734564
Oct 23 18:46:06 INFO: MySQL is not running
734564
runuser: warning: cannot change directory to /nonexistent: No such file or directory
734564
runuser: warning: cannot change directory to /nonexistent: No such file or directory
734564
runuser: warning: cannot change directory to /nonexistent: No such file or directory
734564
Oct 23 18:46:06 INFO: MySQL is not running
734564
Oct 23 18:46:08 INFO: MySQL is not running
734564
Oct 23 18:46:10 INFO: MySQL is not running
734564
Oct 23 18:46:12 INFO: MySQL is not running
734564
Oct 23 18:46:14 INFO: MySQL is not running
734564
Oct 23 18:46:16 INFO: MySQL is not running
734564
Oct 23 18:46:18 INFO: MySQL is not running
734564
Oct 23 18:46:20 INFO: MySQL is not running
734564
Oct 23 18:46:22 INFO: MySQL is not running
734564
Oct 23 18:46:24 INFO: MySQL is not running
734564
---
734564
 heartbeat/mysql-common.sh | 4 ++--
734564
 1 file changed, 2 insertions(+), 2 deletions(-)
734564
734564
diff --git a/heartbeat/mysql-common.sh b/heartbeat/mysql-common.sh
734564
index d1b1ddb96..4004a6b65 100755
734564
--- a/heartbeat/mysql-common.sh
734564
+++ b/heartbeat/mysql-common.sh
734564
@@ -239,8 +239,8 @@ mysql_common_start()
734564
     --datadir=$OCF_RESKEY_datadir \
734564
     --log-error=$OCF_RESKEY_log \
734564
     $OCF_RESKEY_additional_parameters \
734564
-    $mysql_extra_params >/dev/null 2>&1 &
734564
-    pid=$!"
734564
+    $mysql_extra_params >/dev/null 2>&1" &
734564
+    pid=$!
734564
 
734564
     # Spin waiting for the server to come up.
734564
     # Let the CRM/LRM time us out if required.