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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user