Always use service restart for startup

By starting MaxScale with `service restart maxscale`, the start() function
is idempotent: MaxScale is started from a stopped state.
This commit is contained in:
Markus Mäkelä
2018-11-05 14:00:57 +02:00
parent eb1bc0b768
commit a53dbeec57
2 changed files with 5 additions and 10 deletions

View File

@ -230,13 +230,6 @@ int Maxscales::restart_maxscale(int m)
return res;
}
int Maxscales::start_maxscale(int m)
{
int res = ssh_node(m, "service maxscale start", true);
fflush(stdout);
return res;
}
int Maxscales::stop_maxscale(int m)
{
int res = ssh_node(m, "service maxscale stop", true);
@ -244,7 +237,6 @@ int Maxscales::stop_maxscale(int m)
return res;
}
int Maxscales::execute_maxadmin_command(int m, const char* cmd)
{
return ssh_node_f(m, true, "maxadmin %s", cmd);