bugfixes windows start, node daemon error
This commit is contained in:
parent
6f935f6735
commit
18316b805e
|
@ -95,9 +95,12 @@ Launcher.install = function (things, fn) {
|
||||||
killed += 1;
|
killed += 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Two things:
|
||||||
|
// 1) wait to see if the process dies
|
||||||
|
// 2) wait to give time for the socket to cennect
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (fn) { fn(null); return; }
|
if (fn) { fn(err); return; }
|
||||||
}, 1 * 1000);
|
}, 1.25 * 1000);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
, 'launchctl': function () {
|
, 'launchctl': function () {
|
||||||
|
@ -134,7 +137,9 @@ Launcher.install = function (things, fn) {
|
||||||
if (err) { fn(err); return; }
|
if (err) { fn(err); return; }
|
||||||
//console.log((stdout||'').trim());
|
//console.log((stdout||'').trim());
|
||||||
//console.log('load worked?');
|
//console.log('load worked?');
|
||||||
fn(null);
|
setTimeout(function () {
|
||||||
|
fn(null);
|
||||||
|
}, 1.25 * 1000);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
@ -216,8 +221,8 @@ Launcher.install = function (things, fn) {
|
||||||
exec(cmd, things._execOpts, function (err, stdout, stderr) {
|
exec(cmd, things._execOpts, function (err, stdout, stderr) {
|
||||||
err = getError(err, stderr);
|
err = getError(err, stderr);
|
||||||
if (err) { fn(err); return; }
|
if (err) { fn(err); return; }
|
||||||
//console.log((stdout||'').trim());
|
// need to start it for the first time ourselves
|
||||||
fn(null);
|
launchers.node();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue