1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-3991 Merge packages into one. Cleanup dependencies and remove mcsadmin from uninstall

This commit is contained in:
Jose
2020-05-12 21:36:15 +00:00
parent b8caaaa760
commit 1eef764c01
5 changed files with 11 additions and 23 deletions

View File

@ -32,24 +32,15 @@ for arg in "$@"; do
fi
done
#stop services
columnstore stop > /dev/null 2>&1
# Test we are using systemd
systemctl cat mariadb-columnstore.service > /dev/null 2>&1
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
systemctl stop mariadb-columnstore.service > /dev/null 2>&1
systemctl stop mariadb-columnstore >/dev/null 2>&1
systemctl stop mcs-controllernode > /dev/null 2>&1
systemctl stop mcs-ddlproc > /dev/null 2>&1
systemctl stop mcs-dmlproc > /dev/null 2>&1
systemctl stop mcs-exemgr > /dev/null 2>&1
systemctl stop mcs-primproc > /dev/null 2>&1
systemctl stop mcs-workernode > /dev/null 2>&1
systemctl stop mcs-writeengineserver > /dev/null 2>&1
systemctl stop mcs-loadbrm > /dev/null 2>&1
else
pkill mysqld
PROGS='load_brm workernode controllernode PrimProc ExeMgr DMLProc DDLProc WriteEngineServer'
kill $(pidof $PROGS) > /dev/null
sleep 3
kill -9 $(pidof $PROGS) > /dev/null
fi
cloud=`mcsGetConfig Installation Cloud`
@ -92,7 +83,7 @@ columnstoreSyslogSetup.sh uninstall >/dev/null 2>&1
#remove the start service command
systemctl=`which systemctl 2>/dev/null`
if [ -n "$systemctl" ]; then
if [ -n "$systemctl" && [ $(running_systemd) -eq 0 ]; then
systemctl disable mariadb-columnstore >/dev/null 2>&1
systemctl disable mcs-controllernode > /dev/null 2>&1