@kronos-integration/service-systemd 4.2.0 → 4.2.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/README.md +4 -8
- package/package.json +10 -10
- package/src/service.mjs +2 -1
- package/systemd-linux-arm64.node +0 -0
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@kronos-integration/service-systemd)
|
|
1
2
|
[](https://spdx.org/licenses/0BSD.html)
|
|
3
|
+
[](https://bundlejs.com/?q=@kronos-integration/service-systemd)
|
|
4
|
+
[](https://npmjs.org/package/@kronos-integration/service-systemd)
|
|
2
5
|
[](https://github.com/Kronos-Integration/service-systemd/issues)
|
|
3
6
|
[](https://actions-badge.atrox.dev/Kronos-Integration/service-systemd/goto)
|
|
4
7
|
[](https://github.com/prettier/prettier)
|
|
5
8
|
[](http://commitizen.github.io/cz-cli/)
|
|
6
9
|
[](https://snyk.io/test/github/Kronos-Integration/service-systemd)
|
|
7
|
-
[](https://coveralls.io/github/Kronos-Integration/service-systemd)
|
|
8
10
|
|
|
9
11
|
# @kronos-integration/service-systemd
|
|
10
12
|
|
|
@@ -29,7 +31,6 @@ kronos systemd integration
|
|
|
29
31
|
* [Properties](#properties)
|
|
30
32
|
* [credentialsDirectory](#credentialsdirectory)
|
|
31
33
|
* [SystemdConfig](#systemdconfig)
|
|
32
|
-
* [Parameters](#parameters)
|
|
33
34
|
* [Properties](#properties-1)
|
|
34
35
|
* [listeningFileDescriptors](#listeningfiledescriptors)
|
|
35
36
|
* [loadConfig](#loadconfig)
|
|
@@ -67,11 +68,6 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
67
68
|
Provides config from CONFIGURATION\_DIRECTORY.
|
|
68
69
|
Also injects listeningFileDescriptors into the config
|
|
69
70
|
|
|
70
|
-
### Parameters
|
|
71
|
-
|
|
72
|
-
* `config`  
|
|
73
|
-
* `ic`  
|
|
74
|
-
|
|
75
71
|
### Properties
|
|
76
72
|
|
|
77
73
|
* `configurationDirectory` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** taken from CONFIGURATION\_DIRECTORY
|
|
@@ -101,7 +97,7 @@ Kronos bridge to systemd:
|
|
|
101
97
|
|
|
102
98
|
### Parameters
|
|
103
99
|
|
|
104
|
-
* `config`
|
|
100
|
+
* `config` (optional, default `{}`)
|
|
105
101
|
* `ic`  
|
|
106
102
|
|
|
107
103
|
### getCredential
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service-systemd",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
7
7
|
},
|
|
8
|
+
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": "./src/service.mjs"
|
|
10
11
|
},
|
|
@@ -21,23 +22,23 @@
|
|
|
21
22
|
"email": "markus.felten@gmx.de"
|
|
22
23
|
}
|
|
23
24
|
],
|
|
24
|
-
"license": "
|
|
25
|
+
"license": "0BSD",
|
|
25
26
|
"scripts": {
|
|
26
27
|
"test": "node --run test:ava",
|
|
27
|
-
"test:ava": "ava
|
|
28
|
-
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava
|
|
29
|
-
"docs": "documentation readme --section=API ./src
|
|
28
|
+
"test:ava": "ava-s --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
29
|
+
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava-s --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
30
|
+
"docs": "documentation readme --section=API ./src**/*.mjs",
|
|
30
31
|
"lint": "node --run lint:docs",
|
|
31
|
-
"lint:docs": "documentation lint ./src
|
|
32
|
+
"lint:docs": "documentation lint ./src**/*.mjs",
|
|
32
33
|
"build": "cmake-js compile"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@kronos-integration/service": "^15.
|
|
36
|
+
"@kronos-integration/service": "^15.1.1",
|
|
36
37
|
"config-expander": "^14.0.9"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"ava": "^6.4.1",
|
|
40
|
-
"c8": "^10.1.
|
|
41
|
+
"c8": "^10.1.3",
|
|
41
42
|
"cmake-js": "^7.4.0",
|
|
42
43
|
"documentation": "^14.0.3",
|
|
43
44
|
"execa": "^9.6.1",
|
|
@@ -75,6 +76,5 @@
|
|
|
75
76
|
"napi_versions": [
|
|
76
77
|
9
|
|
77
78
|
]
|
|
78
|
-
}
|
|
79
|
-
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45"
|
|
79
|
+
}
|
|
80
80
|
}
|
package/src/service.mjs
CHANGED
|
@@ -67,8 +67,9 @@ class SystemdConfig extends ServiceConfig {
|
|
|
67
67
|
* @return {FileDescriptor[]}
|
|
68
68
|
*/
|
|
69
69
|
get listeningFileDescriptors() {
|
|
70
|
-
const count =
|
|
70
|
+
const count = process.env.LISTEN_FDS ? parseInt(process.env.LISTEN_FDS) : 0;
|
|
71
71
|
const fdNames = (process.env.LISTEN_FDNAMES || "").split(":");
|
|
72
|
+
|
|
72
73
|
const arr = new Array(count);
|
|
73
74
|
for (let i = 0; i < count; i++) {
|
|
74
75
|
arr[i] = {
|
package/systemd-linux-arm64.node
DELETED
|
Binary file
|