check_webservice_load.sh: support mariadb.
This commit is contained in:
parent
8a2684d8b2
commit
def72620bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user