Skip to content

Commit 7a4f43b

Browse files
author
Alexandros Ioannides
authored
Fix for MariaDB Service Detection
Newer versions of MariaDB use "mariadb" as name instead of "mysql".
1 parent 0036df3 commit 7a4f43b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-list-sys-services

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
227227
if [ -d "/etc/sysconfig" ]; then
228228
service='mysqld'
229229
proc_name='mysqld'
230-
if [ -e "/usr/lib/systemd/system/mariadb.service" ]; then
231-
service='mariadb'
232-
fi
230+
fi
231+
if [ -e "/usr/lib/systemd/system/mariadb.service" ]; then
232+
service='mariadb'
233233
fi
234234
fi
235235
if [ "$service" == 'pgsql' ]; then

0 commit comments

Comments
 (0)