Skip to content

Commit accfecb

Browse files
author
Kristan Kenney
committed
Merge remote-tracking branch 'origin/fix/2020-08_mariadb' into staging/fixes
2 parents 9629c3d + fc1e670 commit accfecb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

bin/v-list-sys-services

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,24 @@ fi
221221
# Checking DB system
222222
if [ ! -z "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
223223
for db in ${DB_SYSTEM//,/ }; do
224-
proc_name=''
225224
service="$db"
225+
proc_name=''
226226
if [ "$service" = 'mysql' ]; then
227+
if [ -e "/lib/systemd/system/mariadb.service" ]; then
228+
service='mariadb'
229+
proc_name='mysqld'
230+
fi
231+
if [ -f /usr/bin/mysqladmin ]; then
232+
mariadb_v=`mysqladmin --version | awk 'NR==1{print $5}' | head -c 4`
233+
if [ $mariadb_v = "10.5" ]; then
234+
service='mariadb'
235+
proc_name='mariadbd'
236+
fi
237+
fi
227238
if [ -d "/etc/sysconfig" ]; then
228239
service='mysqld'
229240
proc_name='mysqld'
230241
fi
231-
if [ -e "/usr/lib/systemd/system/mariadb.service" ]; then
232-
service='mariadb'
233-
fi
234242
fi
235243
if [ "$service" == 'pgsql' ]; then
236244
service='postgresql'

0 commit comments

Comments
 (0)