@phreshos/cli 0.1.71 → 0.1.72
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/system/lifecycle.js
CHANGED
|
@@ -169,10 +169,14 @@ export default class SystemLifecycle {
|
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
171
|
await service.register(definition(installation, await nodeExecutable()));
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
// A background container service has no automatic-startup capability.
|
|
173
|
+
// Restoring its running state must not invoke an unsupported setting.
|
|
174
|
+
if (state.automaticStartup) {
|
|
175
|
+
if (state.enabled)
|
|
176
|
+
await service.enable();
|
|
177
|
+
else
|
|
178
|
+
await service.disable();
|
|
179
|
+
}
|
|
176
180
|
if (state.running) {
|
|
177
181
|
await this.launchService();
|
|
178
182
|
await this.waitUntilReady();
|