Browse Source

added chain param to komodod quit

all-modes
pbca26 8 years ago
parent
commit
ad1e38c604
  1. 6
      routes/shepherd.js

6
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) {

Loading…
Cancel
Save