diff --git a/routes/shepherd.js b/routes/shepherd.js index 5fde4bf..299c82b 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -98,10 +98,10 @@ shepherd.appConfig = { } }; -shepherd.quitKomodod = function() { +shepherd.quitKomodod = function(chain) { // exit komodod gracefully - console.log('exec ' + komodocliBin + ' stop'); - exec(komodocliBin + ' stop', function(error, stdout, stderr) { + console.log('exec ' + komodocliBin + (chain ? ' ac_name=' + chain : '') + ' stop'); + exec(komodocliBin + (chain ? ' ac_name=' + chain : '') + ' stop', function(error, stdout, stderr) { console.log('stdout: ' + stdout) console.log('stderr: ' + stderr) if (error !== null) {