From 42bf95eb82035d06c926cde0b00bce5b704b49a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 25 Jun 2019 10:15:06 +0300 Subject: [PATCH] Fix MariaDB startup commands Newer systems only define the mariadb service. --- maxscale-system-test/mariadb_nodes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maxscale-system-test/mariadb_nodes.cpp b/maxscale-system-test/mariadb_nodes.cpp index e350d655a..deb6e0146 100644 --- a/maxscale-system-test/mariadb_nodes.cpp +++ b/maxscale-system-test/mariadb_nodes.cpp @@ -144,11 +144,11 @@ void Mariadb_nodes::read_env() //reading start_db_command sprintf(env_name, "%s_%03d_start_db_command", prefix, i); - start_db_command[i] = readenv(env_name, (char *) "service mysql start"); + start_db_command[i] = readenv(env_name, (char *) "systemctl start mariadb || service mysql start"); //reading stop_db_command sprintf(env_name, "%s_%03d_stop_db_command", prefix, i); - stop_db_command[i] = readenv(env_name, (char *) "service mysql stop"); + stop_db_command[i] = readenv(env_name, (char *) "systemctl stop mariadb || service mysql stop"); //reading cleanup_db_command sprintf(env_name, "%s_%03d_cleanup_db_command", prefix, i);