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-4335 Add absolute path into columnstore-post-install and mariadb-columnstore-start.sh
This commit is contained in:
22
oam/install_scripts/mariadb-columnstore-start.sh.in
Normal file
22
oam/install_scripts/mariadb-columnstore-start.sh.in
Normal 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
|
Reference in New Issue
Block a user