@ebowwa/seedinstallation 0.4.1 → 0.4.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/dist/index.js +1 -5
- package/dist/systemd.js +1 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -274,7 +274,6 @@ async function hasSystemd(opts) {
|
|
|
274
274
|
const sudoOpts = opts ?? { context: { type: "local" } };
|
|
275
275
|
const whichResult = await exec3(["which", "systemctl"], {
|
|
276
276
|
...sudoOpts,
|
|
277
|
-
quiet: true,
|
|
278
277
|
env: sudoOpts.env
|
|
279
278
|
});
|
|
280
279
|
if (!whichResult.ok || !whichResult.stdout.trim()) {
|
|
@@ -288,7 +287,6 @@ async function hasSystemd(opts) {
|
|
|
288
287
|
}
|
|
289
288
|
const runningResult = await exec3(["systemctl", "is-system-running"], {
|
|
290
289
|
...sudoOpts,
|
|
291
|
-
quiet: true,
|
|
292
290
|
env: sudoOpts.env
|
|
293
291
|
});
|
|
294
292
|
if (runningResult.ok && runningResult.stdout.trim() !== "") {
|
|
@@ -301,7 +299,6 @@ async function hasSystemd(opts) {
|
|
|
301
299
|
}
|
|
302
300
|
const dirResult = await exec3(["test", "-d", "/run/systemd/system"], {
|
|
303
301
|
...sudoOpts,
|
|
304
|
-
quiet: true,
|
|
305
302
|
env: sudoOpts.env
|
|
306
303
|
});
|
|
307
304
|
if (dirResult.ok) {
|
|
@@ -465,8 +462,7 @@ async function reloadService(name, opts) {
|
|
|
465
462
|
}
|
|
466
463
|
async function getServiceStatus(name, opts) {
|
|
467
464
|
const result = await exec3(["systemctl", "show", name, "--property=LoadState,ActiveState,SubState,MainPID,Description"], {
|
|
468
|
-
...opts
|
|
469
|
-
quiet: true
|
|
465
|
+
...opts
|
|
470
466
|
});
|
|
471
467
|
if (!result.ok) {
|
|
472
468
|
return { loaded: false, active: false, subState: "unknown", mainPid: 0, description: "" };
|
package/dist/systemd.js
CHANGED
|
@@ -144,7 +144,6 @@ async function hasSystemd(opts) {
|
|
|
144
144
|
const sudoOpts = opts ?? { context: { type: "local" } };
|
|
145
145
|
const whichResult = await exec2(["which", "systemctl"], {
|
|
146
146
|
...sudoOpts,
|
|
147
|
-
quiet: true,
|
|
148
147
|
env: sudoOpts.env
|
|
149
148
|
});
|
|
150
149
|
if (!whichResult.ok || !whichResult.stdout.trim()) {
|
|
@@ -158,7 +157,6 @@ async function hasSystemd(opts) {
|
|
|
158
157
|
}
|
|
159
158
|
const runningResult = await exec2(["systemctl", "is-system-running"], {
|
|
160
159
|
...sudoOpts,
|
|
161
|
-
quiet: true,
|
|
162
160
|
env: sudoOpts.env
|
|
163
161
|
});
|
|
164
162
|
if (runningResult.ok && runningResult.stdout.trim() !== "") {
|
|
@@ -171,7 +169,6 @@ async function hasSystemd(opts) {
|
|
|
171
169
|
}
|
|
172
170
|
const dirResult = await exec2(["test", "-d", "/run/systemd/system"], {
|
|
173
171
|
...sudoOpts,
|
|
174
|
-
quiet: true,
|
|
175
172
|
env: sudoOpts.env
|
|
176
173
|
});
|
|
177
174
|
if (dirResult.ok) {
|
|
@@ -335,8 +332,7 @@ async function reloadService(name, opts) {
|
|
|
335
332
|
}
|
|
336
333
|
async function getServiceStatus(name, opts) {
|
|
337
334
|
const result = await exec2(["systemctl", "show", name, "--property=LoadState,ActiveState,SubState,MainPID,Description"], {
|
|
338
|
-
...opts
|
|
339
|
-
quiet: true
|
|
335
|
+
...opts
|
|
340
336
|
});
|
|
341
337
|
if (!result.ok) {
|
|
342
338
|
return { loaded: false, active: false, subState: "unknown", mainPid: 0, description: "" };
|