You've already forked mariadb-columnstore-engine
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:
committed by
Patrick LeBlanc
parent
61574cd00d
commit
da32afc0b2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user