You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCS server python code uses python3 by default in (RHEL|Centos)8, (Suse|SLES)15 and Fedora whilst other distributions use default python interpreter.
RPM now restarts MDB on uninstall. systemd logs a message if SM is not configured.
This commit is contained in:
31
build/postUn_storage_engine.sh
Normal file
31
build/postUn_storage_engine.sh
Normal file
@ -0,0 +1,31 @@
|
||||
running_systemd() {
|
||||
if [ "$(ps --no-headers -o comm 1)" = "systemd" ]; then
|
||||
echo 0
|
||||
else
|
||||
echo 1
|
||||
fi
|
||||
}
|
||||
|
||||
rpmmode=upgrade
|
||||
if [ "$1" -eq "$1" 2> /dev/null ]; then
|
||||
if [ $1 -ne 1 ]; then
|
||||
rpmmode=erase
|
||||
fi
|
||||
else
|
||||
rpmmode=erase
|
||||
fi
|
||||
|
||||
if [ $rpmmode = erase ]; then
|
||||
if [ ! -z "$(pgrep -x mysqld)" ];then
|
||||
systemctl cat mariadb.service > /dev/null 2>&1
|
||||
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
||||
systemctl restart mariadb.service > /dev/null 2>&1
|
||||
else
|
||||
pkill mysqld > /dev/null 2>&1
|
||||
/usr/bin/mysqld_safe &
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user