pmcf 2.71.5 → 2.71.7
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
CHANGED
package/src/services/bind.mjs
CHANGED
|
@@ -9,12 +9,7 @@ import {
|
|
|
9
9
|
dnsRecordTypeForAddressFamily,
|
|
10
10
|
sortZoneRecords
|
|
11
11
|
} from "../dns-utils.mjs";
|
|
12
|
-
import {
|
|
13
|
-
ExtraSourceService,
|
|
14
|
-
Endpoint,
|
|
15
|
-
serviceEndpoints,
|
|
16
|
-
addresses
|
|
17
|
-
} from "pmcf";
|
|
12
|
+
import { ExtraSourceService, serviceEndpoints, addresses } from "pmcf";
|
|
18
13
|
import { addType } from "../types.mjs";
|
|
19
14
|
import { Service, ServiceTypeDefinition } from "../service.mjs";
|
|
20
15
|
import { ExtraSourceServiceTypeDefinition } from "../extra-source-service.mjs";
|
|
@@ -157,6 +152,7 @@ export class BindService extends ExtraSourceService {
|
|
|
157
152
|
constructor(owner, data) {
|
|
158
153
|
super(owner, data);
|
|
159
154
|
|
|
155
|
+
this._systemd = "bind.service";
|
|
160
156
|
this._extends.push(new Service(owner, { name: this.name, type: "dns" }));
|
|
161
157
|
this.views = {};
|
|
162
158
|
|
|
@@ -366,14 +362,13 @@ export class BindService extends ExtraSourceService {
|
|
|
366
362
|
|
|
367
363
|
for (const source of sources) {
|
|
368
364
|
console.log(
|
|
369
|
-
"
|
|
370
|
-
source.
|
|
371
|
-
source.
|
|
372
|
-
source.toString()
|
|
365
|
+
"SOURCE",
|
|
366
|
+
source.toString(),
|
|
367
|
+
[...source.localDomains].join(" ")
|
|
373
368
|
);
|
|
374
369
|
|
|
375
370
|
for (const domain of source.localDomains) {
|
|
376
|
-
const locationName = source.name;
|
|
371
|
+
const locationName = source.location.name;
|
|
377
372
|
const reverseZones = new Map();
|
|
378
373
|
|
|
379
374
|
const config = {
|
package/src/services/chrony.mjs
CHANGED
|
@@ -34,7 +34,7 @@ const ChronyServiceTypeDefinition = {
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
family: "unix",
|
|
37
|
-
path: "/run/chrony/chronyd.sock"
|
|
37
|
+
path: "/var/run/chrony/chronyd.sock"
|
|
38
38
|
}
|
|
39
39
|
]
|
|
40
40
|
}
|
|
@@ -54,6 +54,8 @@ export class ChronyService extends ExtraSourceService {
|
|
|
54
54
|
constructor(owner, data) {
|
|
55
55
|
super(owner, data);
|
|
56
56
|
this.read(data, ChronyServiceTypeDefinition);
|
|
57
|
+
|
|
58
|
+
this._systemd = "chronyd.service";
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
get type() {
|