1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-07 20:42:15 +03:00

Merge pull request #1023 from LinuxJedi/mariadb-systemctl

MCOL-3718 Use systemd instead of mysql-Columnstore
This commit is contained in:
benthompson15
2020-02-12 10:01:26 -06:00
committed by Patrick LeBlanc
parent 61574cd00d
commit da32afc0b2
10 changed files with 161 additions and 544 deletions

View File

@@ -1514,8 +1514,17 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
system(cmd.c_str());
cmd = "post-mysql-install >> " + tmpLogDir + "/rpminstall";
system(cmd.c_str());
cmd = "mysql-Columnstore start > " + tmpLogDir + "/mysqldstart";
system(cmd.c_str());
int ret = system("systemctl cat mariadb.service > /dev/null 2>&1");
if (!ret)
{
cmd = "systemctl start mariadb.service > " + tmpLogDir + "/mysqldstart";
system(cmd.c_str());
}
else
{
cmd = "/usr/bin/mysqld_safe & > " + tmpLogDir + "/mysqldstart";
system(cmd.c_str());
}
string tmpFile = tmpLogDir + "/mysqldstart";
ifstream file (tmpFile.c_str());