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

MCOL-3915 Run post-install, postConfigure, and start systemd units during package installation

This commit is contained in:
Jose
2020-04-13 05:15:44 +00:00
committed by root
parent 24b43568a1
commit 7b66bc7ead
2 changed files with 20 additions and 3331 deletions

View File

@ -85,6 +85,8 @@ if [ $user = "root" ]; then
systemctl=`which systemctl 2>/dev/null` systemctl=`which systemctl 2>/dev/null`
if [ -n "$systemctl" ]; then if [ -n "$systemctl" ]; then
cp @ENGINE_SUPPORTDIR@/controllernode.service /usr/lib/systemd/system/. >/dev/null 2>&1
cp @ENGINE_SUPPORTDIR@/controllernode.service /lib/systemd/system/. >/dev/null 2>&1
cp @ENGINE_SUPPORTDIR@/controllernode.service /usr/lib/systemd/system/. >/dev/null 2>&1 cp @ENGINE_SUPPORTDIR@/controllernode.service /usr/lib/systemd/system/. >/dev/null 2>&1
cp @ENGINE_SUPPORTDIR@/controllernode.service /lib/systemd/system/. >/dev/null 2>&1 cp @ENGINE_SUPPORTDIR@/controllernode.service /lib/systemd/system/. >/dev/null 2>&1
cp @ENGINE_SUPPORTDIR@/ddlproc.service /usr/lib/systemd/system/. >/dev/null 2>&1 cp @ENGINE_SUPPORTDIR@/ddlproc.service /usr/lib/systemd/system/. >/dev/null 2>&1
@ -170,5 +172,22 @@ postConfigure
EOD EOD
#postConfigure scripts
#post-mysqld-install --tmpDir=$tmpDir > $tmpDir/post-mysqld-install.log 2>&1
#post-mysql-install --tmpDir=$tmpDir > $tmpDir/post-mysql-install.log 2>&1
#columnstore restart > /dev/null 2>&1
#dbbuilder 7 > $tmpDir/dbbuilder.log 2>&1
postConfigure -qs
PROGS='workernode controllernode PrimProc ExeMgr DMLProc DDLProc mysqld WriteEngineServer'
MCS_INSTALL_DIR=/usr
kill $(pidof $PROGS) > /dev/null
sleep 3
kill -9 $(pidof $PROGS) > /dev/null
@ENGINE_BINDIR@/clearShm
systemctl start columnstore
exit 0 exit 0

File diff suppressed because it is too large Load Diff