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