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