check_webservice_load.sh: support mariadb.

This commit is contained in:
Christoph 2021-03-30 02:23:34 +02:00
parent 8a2684d8b2
commit def72620bb

View File

@ -232,6 +232,14 @@ if $check_mysql ; then
| grep -E " enabled" \
| awk '{print$1}'\
| head -1)
elif systemctl -t service list-unit-files \
| grep -e "^mariadb" \
| grep -q -E "(enabled|disabled)" 2> /dev/null ; then
MYSQLD_SERVICE_FILE=$(systemctl -t service list-unit-files \
| grep -e "^mariadb.*.service" \
| grep -E " enabled" \
| awk '{print$1}'\
| head -1)
fi
fi