From 43eef6270417f7c06ebda993ab2366c744ab64f7 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 15 Jan 2019 18:53:39 +0100 Subject: [PATCH] check_webservice_load.sh: adjust determin mysql service file if parallel installations are present. --- check_webservice_load.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_webservice_load.sh b/check_webservice_load.sh index 47fdb13..06c2d19 100755 --- a/check_webservice_load.sh +++ b/check_webservice_load.sh @@ -228,8 +228,8 @@ if $check_mysql ; then | grep -q -E "(enabled|disabled)" 2> /devnull ; then MYSQLD_SERVICE_FILE=$(systemctl -t service list-unit-files \ - | grep -e "^mysql" \ - | grep -e " enabled" \ + | grep -e "^mysql[^0-9]*\.service" \ + | grep -E " enabled" \ | awk '{print$1}'\ | head -1) fi