code: function(server, cb) {
      var port = _getServerConfig(server).port || 3223;
      var result = {running: false, port: port, listening: false};
      var host = 'localhost';
  
      var pidFile = path.join(nscaleRoot, 'data', '.' + server);
  
      portscanner.checkPortStatus(port, host, function(err, status) {
        if (err) { return cb(err); }
        result.listening = (status === 'open') ? true : false;
  
        if (fs.existsSync(pidFile)) {
          var pid = Number(fs.readFileSync(pidFile));
          result.pid = pid;
  
          running(pid, function(err, running) {
            if (err) { cb(err); }
            result.running = running;
            cb(null, result);
          });
        }
        else { 
          cb(null, result); 
        }
      });
    }
docs: /*
  return a status object that looks like this:
  {running: true, listening: true}