File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 221221# Checking DB system
222222if [ ! -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 [ -d " /etc/sysconfig " ]; then
228- service=' mysqld '
227+ if [ -e " /lib/systemd/system/mariadb.service " ]; then
228+ service=' mariadb '
229229 proc_name=' mysqld'
230230 fi
231- if [ -e " /usr/lib/systemd/system/mariadb.service" ]; then
232- service=' mariadb'
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
238+ if [ -d " /etc/sysconfig" ]; then
239+ service=' mysqld'
233240 proc_name=' mysqld'
234241 fi
235242 fi
You can’t perform that action at this time.
0 commit comments