mirror of https://gitee.com/bigwinds/arangodb
Finalise Kickstarter.
This commit is contained in:
parent
945c80f23d
commit
d168b0ff7f
|
@ -296,7 +296,6 @@ launchActions.startServers = function (dispatchers, cmd, isRelaunch) {
|
|||
"..", cmd.arangodPath ));
|
||||
}
|
||||
}
|
||||
print(arangodPath, args);
|
||||
pids.push(executeExternal(arangodPath, args));
|
||||
endpoints.push(exchangePort(dispatchers[cmd.dispatcher].endpoint,port));
|
||||
}
|
||||
|
|
|
@ -157,13 +157,15 @@ PortFinder.prototype.next = function () {
|
|||
// Check that port is available:
|
||||
if (!this.dispatcher.avoidPorts.hasOwnProperty(this.port)) {
|
||||
var available = true;
|
||||
if (this.dispatcher.endpoint !== "tcp://localhost:") {
|
||||
if (this.dispatcher.endpoint === "tcp://localhost:") {
|
||||
available = SYS_TEST_PORT("tcp://0.0.0.0:"+this.port);
|
||||
}
|
||||
else {
|
||||
var url = "http" + this.dispatcher.endpoint.substr(3) +
|
||||
"/_admin/clusterCheckPort?port="+this.port;
|
||||
print("Doing: ",url);
|
||||
var r = download(url, "", {"method": "GET"});
|
||||
print("ResultCOde:", r.code);
|
||||
if (r.code === 200) {
|
||||
available = JSON.parse(r.body);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue