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:
@ -250,9 +250,12 @@ public:
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief start_maxscale Issues 'service maxscale start' command
|
||||
* @brief alias for restart_maxscale
|
||||
*/
|
||||
int start_maxscale(int m = 0);
|
||||
int start_maxscale(int m = 0)
|
||||
{
|
||||
return restart_maxscale(m);
|
||||
}
|
||||
int start(int m = 0)
|
||||
{
|
||||
return start_maxscale(m);
|
||||
|
||||
Reference in New Issue
Block a user