lianrouter 2.3.6 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ var package_default;
|
|
|
17
17
|
var init_package = __esm(() => {
|
|
18
18
|
package_default = {
|
|
19
19
|
name: "lianrouter",
|
|
20
|
-
version: "2.3.
|
|
20
|
+
version: "2.3.8",
|
|
21
21
|
description: "LianRouter launcher: install, run and control the gateway from one command",
|
|
22
22
|
type: "module",
|
|
23
23
|
bin: {
|
|
@@ -2323,11 +2323,13 @@ function installShutdownHandlers(shutdown, exit) {
|
|
|
2323
2323
|
};
|
|
2324
2324
|
process.on("SIGINT", onSignal);
|
|
2325
2325
|
process.on("SIGTERM", onSignal);
|
|
2326
|
+
process.on("SIGHUP", onSignal);
|
|
2326
2327
|
return {
|
|
2327
2328
|
run,
|
|
2328
2329
|
dispose() {
|
|
2329
2330
|
process.off("SIGINT", onSignal);
|
|
2330
2331
|
process.off("SIGTERM", onSignal);
|
|
2332
|
+
process.off("SIGHUP", onSignal);
|
|
2331
2333
|
}
|
|
2332
2334
|
};
|
|
2333
2335
|
}
|
|
@@ -3863,6 +3865,7 @@ async function enterTrayMode(supervisor, options, runtime) {
|
|
|
3863
3865
|
await shutdownSession(session, supervisor);
|
|
3864
3866
|
return 1;
|
|
3865
3867
|
}
|
|
3868
|
+
supervisor.detach();
|
|
3866
3869
|
if (options.noOpen) {
|
|
3867
3870
|
console.log(`Tray host started; control port ${session.control.port}`);
|
|
3868
3871
|
}
|