1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00
This commit is contained in:
david hill
2016-06-30 14:28:15 -05:00
parent b6c8d4555f
commit 6e1ce92b0f
6 changed files with 59 additions and 24 deletions

View File

@ -8037,9 +8037,9 @@ namespace oam
system(cmd.c_str());
if (user == 0)
cmd = "/etc/init.d/" + systemlog + " " + action + " > /dev/null 2>&1";
cmd = "/service " + systemlog + " " + action + " > /dev/null 2>&1";
else
cmd = "sudo /etc/init.d/" + systemlog + " " + action + " > /dev/null 2>&1";
cmd = "sudo service" + systemlog + " " + action + " > /dev/null 2>&1";
}
// take action on syslog service
writeLog("syslogAction cmd: " + cmd, LOG_TYPE_DEBUG );
@ -8240,12 +8240,17 @@ namespace oam
// retry failure
writeLog("glusterctl: GLUSTER_WHOHAS: failure, retrying (restarting gluster) " + msg, LOG_TYPE_ERROR );
string cmd = "/etc/init.d/glusterd restart > /dev/null 2>&1";
string cmd = "service glusterd restart > /dev/null 2>&1";
if (user != 0)
cmd = "sudo " + cmd;
system(cmd.c_str());
string cmd = "systemctrl restart glusterd > /dev/null 2>&1";
if (user != 0)
cmd = "sudo " + cmd;
system(cmd.c_str());
sleep(1);
}