You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
add in the systemctl command for services
This commit is contained in:
@@ -7853,6 +7853,13 @@ namespace oam
|
||||
{
|
||||
int user;
|
||||
user = getuid();
|
||||
if (user == 0)
|
||||
cmd = "systemctl " + action + " " + systemlog + ".service > /dev/null 2>&1";
|
||||
else
|
||||
cmd = "sudo systemctl " + action + " " + systemlog + ".service > /dev/null 2>&1";
|
||||
|
||||
system(cmd.c_str());
|
||||
|
||||
if (user == 0)
|
||||
cmd = "/etc/init.d/" + systemlog + " " + action + " > /dev/null 2>&1";
|
||||
else
|
||||
|
Reference in New Issue
Block a user