Merge branch '2.2' into 2.3

This commit is contained in:
Markus Mäkelä
2019-03-15 12:26:59 +02:00
8 changed files with 71 additions and 39 deletions

View File

@ -37,10 +37,10 @@ exports.builder = function(yargs) {
return doRequest(host, 'monitors/' + argv.name + '/stop', null, {method: 'PUT'})
})
})
.command('maxscale', 'Stop MaxScale by stopping all services', function(yargs) {
.command(['services', 'maxscale'], 'Stop all services', function(yargs) {
return yargs.epilog('This command will execute the `stop service` command for ' +
'all services in MaxScale.')
.usage('Usage: stop maxscale')
.usage('Usage: stop [services|maxscale]')
}, function(argv) {
maxctrl(argv, function(host) {
return doRequest(host, 'services/', function(res) {