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

MCOL-4335 Add absolute path into columnstore-post-install and mariadb-columnstore-start.sh

This commit is contained in:
Alexander Barkov
2020-10-05 11:49:23 +04:00
parent 72118c4618
commit 12312f5085
4 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,22 @@
#!/bin/bash
# This script allows to gracefully start MCS
# prevent nodes using shared storage manager from stepping on each other when initializing
# flock will open up an exclusive file lock to run atomic operations
exec {fd_lock}>/var/lib/columnstore/storagemanager/storagemanager-lock
flock -n "$fd_lock" || exit 0
/bin/systemctl start mcs-workernode
/bin/systemctl start mcs-controllernode
/bin/systemctl start mcs-primproc
/bin/systemctl start mcs-writeengineserver
/bin/systemctl start mcs-exemgr
/bin/systemctl start mcs-dmlproc
/bin/systemctl start mcs-ddlproc
sleep 2
su -s /bin/sh -c '@ENGINE_BINDIR@/dbbuilder 7' mysql 1> /tmp/columnstore_tmp_files/dbbuilder.log
flock -u "$fd_lock"
exit 0