|
|
@ -21,7 +21,7 @@ var express = require('express'), |
|
|
|
pm2 = require('pm2'), |
|
|
|
cluster = require('cluster'), |
|
|
|
numCPUs = require('os').cpus().length, |
|
|
|
coincli = require('./private/coincli.js'), |
|
|
|
//coincli = require('./private/coincli.js'),
|
|
|
|
ipc = require('electron').ipcMain; |
|
|
|
|
|
|
|
Promise = require('bluebird'); |
|
|
@ -41,6 +41,7 @@ var shepherd = require('./routes/shepherd'), |
|
|
|
|
|
|
|
if (appConfig.killIguanaOnStart) { |
|
|
|
var iguanaGrep; |
|
|
|
|
|
|
|
if (os.platform() === 'darwin') { |
|
|
|
iguanaGrep = "ps -p $(ps -A | grep -m1 iguana | awk '{print $1}') | grep -i iguana"; |
|
|
|
} |
|
|
@ -53,7 +54,7 @@ if (appConfig.killIguanaOnStart) { |
|
|
|
exec(iguanaGrep, function(error, stdout, stderr) { |
|
|
|
if (stdout.indexOf('iguana') > -1) { |
|
|
|
console.log('found another iguana process(es)'); |
|
|
|
var pkillCmd = os.platform() === 'win32' ? 'taskkill /f /im iguana.exe' : 'pkill -9 iguana'; |
|
|
|
const pkillCmd = os.platform() === 'win32' ? 'taskkill /f /im iguana.exe' : 'pkill -9 iguana'; |
|
|
|
|
|
|
|
exec(pkillCmd, function(error, stdout, stderr) { |
|
|
|
console.log(pkillCmd + ' is issued'); |
|
|
|