detecting mariadb in v-list-sys-services

This commit is contained in:
myvesta 2021-07-17 12:26:14 +02:00 committed by GitHub
commit 9791d0b3b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,6 +220,11 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
proc_name='' proc_name=''
service="$db" service="$db"
if [ "$service" = 'mysql' ]; then if [ "$service" = 'mysql' ]; then
release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
if [ "$release" -eq 11 ]; then
service='mariadb'
proc_name='mariadbd'
fi
if [ -d "/etc/sysconfig" ]; then if [ -d "/etc/sysconfig" ]; then
service='mysqld' service='mysqld'
proc_name='mysqld' proc_name='mysqld'