@getdial/cli 0.13.0 → 0.13.2
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/lib/supervisor/systemd.js +7 -2
- package/package.json +1 -1
- package/skills.tar.gz +0 -0
|
@@ -74,7 +74,11 @@ export function systemctlStatus() {
|
|
|
74
74
|
return { running: active, pid: active && pid > 0 ? pid : null };
|
|
75
75
|
}
|
|
76
76
|
catch (err) {
|
|
77
|
-
|
|
77
|
+
// Best-effort status probe. Any failure — systemctl missing, no user session
|
|
78
|
+
// bus (sandbox/container/CI), unit unknown — just means "not running" for our
|
|
79
|
+
// purposes. Log at debug so we never dump a stack trace to a user's stderr;
|
|
80
|
+
// run with DIAL_LOG_LEVEL=debug to see it.
|
|
81
|
+
logger.debug({ err }, "systemctl show failed; treating listen service as not running");
|
|
78
82
|
return { running: false, pid: null };
|
|
79
83
|
}
|
|
80
84
|
}
|
|
@@ -84,7 +88,8 @@ export function lingerEnabled(user) {
|
|
|
84
88
|
return /Linger=yes/.test(out);
|
|
85
89
|
}
|
|
86
90
|
catch (err) {
|
|
87
|
-
|
|
91
|
+
// Best-effort; debug only (see systemctlStatus). Assume linger disabled.
|
|
92
|
+
logger.debug({ err, user }, "loginctl show-user failed; assuming linger disabled");
|
|
88
93
|
return false;
|
|
89
94
|
}
|
|
90
95
|
}
|
package/package.json
CHANGED
package/skills.tar.gz
CHANGED
|
Binary file
|