@kronos-integration/service-systemd 4.2.0 → 4.2.1
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 +1 -7
- package/package.json +1 -1
- package/src/service.mjs +2 -1
package/README.md
CHANGED
|
@@ -29,7 +29,6 @@ kronos systemd integration
|
|
|
29
29
|
* [Properties](#properties)
|
|
30
30
|
* [credentialsDirectory](#credentialsdirectory)
|
|
31
31
|
* [SystemdConfig](#systemdconfig)
|
|
32
|
-
* [Parameters](#parameters)
|
|
33
32
|
* [Properties](#properties-1)
|
|
34
33
|
* [listeningFileDescriptors](#listeningfiledescriptors)
|
|
35
34
|
* [loadConfig](#loadconfig)
|
|
@@ -67,11 +66,6 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
67
66
|
Provides config from CONFIGURATION\_DIRECTORY.
|
|
68
67
|
Also injects listeningFileDescriptors into the config
|
|
69
68
|
|
|
70
|
-
### Parameters
|
|
71
|
-
|
|
72
|
-
* `config`  
|
|
73
|
-
* `ic`  
|
|
74
|
-
|
|
75
69
|
### Properties
|
|
76
70
|
|
|
77
71
|
* `configurationDirectory` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** taken from CONFIGURATION\_DIRECTORY
|
|
@@ -101,7 +95,7 @@ Kronos bridge to systemd:
|
|
|
101
95
|
|
|
102
96
|
### Parameters
|
|
103
97
|
|
|
104
|
-
* `config`
|
|
98
|
+
* `config` (optional, default `{}`)
|
|
105
99
|
* `ic`  
|
|
106
100
|
|
|
107
101
|
### getCredential
|
package/package.json
CHANGED
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] = {
|