@kronos-integration/service-systemd 3.0.1 → 3.0.3
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/package.json +3 -3
- package/src/service.mjs +3 -3
- package/systemd-linux-arm64.node +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service-systemd",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build": "cmake-js compile"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@kronos-integration/service": "^13.
|
|
35
|
+
"@kronos-integration/service": "^13.2.7",
|
|
36
36
|
"config-expander": "^14.0.9"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"semantic-release": "^24.2.7"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
|
-
"node": ">=22.
|
|
48
|
+
"node": ">=22.18.0"
|
|
49
49
|
},
|
|
50
50
|
"os": [
|
|
51
51
|
"linux"
|
package/src/service.mjs
CHANGED
|
@@ -32,7 +32,7 @@ class JournalLogger extends ServiceLogger {
|
|
|
32
32
|
return "Forward log entries into systemd journal";
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
logEntry(entry) {
|
|
35
|
+
async logEntry(entry) {
|
|
36
36
|
journal_print_object(entry);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -67,7 +67,7 @@ class SystemdConfig extends ServiceConfig {
|
|
|
67
67
|
* @return {FileDescriptor[]}
|
|
68
68
|
*/
|
|
69
69
|
get listeningFileDescriptors() {
|
|
70
|
-
const count = Number(process.env.LISTEN_FDS)
|
|
70
|
+
const count = Number(process.env.LISTEN_FDS) ?? 0;
|
|
71
71
|
const fdNames = (process.env.LISTEN_FDNAMES || "").split(":");
|
|
72
72
|
const arr = new Array(count);
|
|
73
73
|
for (let i = 0; i < count; i++) {
|
|
@@ -116,7 +116,7 @@ class SystemdConfig extends ServiceConfig {
|
|
|
116
116
|
state,
|
|
117
117
|
lfd.map(l => l.fd)
|
|
118
118
|
);
|
|
119
|
-
this.
|
|
119
|
+
this.trace(`${state} (${rc})`);
|
|
120
120
|
|
|
121
121
|
return super._stop();
|
|
122
122
|
}
|
package/systemd-linux-arm64.node
CHANGED
|
Binary file
|