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
MCOL-3915 Run post-install, postConfigure, and start systemd units during package installation
This commit is contained in:
@ -85,6 +85,8 @@ if [ $user = "root" ]; then
|
||||
systemctl=`which systemctl 2>/dev/null`
|
||||
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 /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
|
||||
|
||||
#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
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user