server: ensure cluster client service control

This commit is contained in:
Koushik Dutta
2024-12-05 08:45:03 -08:00
parent 786b4b5ed9
commit 83bde83a39
2 changed files with 4 additions and 3 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/server",
"version": "0.123.55",
"version": "0.123.56",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@scrypted/server",
"version": "0.123.55",
"version": "0.123.56",
"hasInstallScript": true,
"license": "ISC",
"dependencies": {

View File

@@ -22,7 +22,7 @@ import type { ScryptedRuntime } from './runtime';
import type { ClusterForkService } from './services/cluster-fork';
import { EnvControl } from './services/env';
import { Info } from './services/info';
import type { ServiceControl } from './services/service-control';
import { ServiceControl } from './services/service-control';
import { sleep } from './sleep';
installSourceMapSupport({
@@ -30,6 +30,7 @@ installSourceMapSupport({
});
async function start(mainFilename: string, serviceControl?: ServiceControl) {
serviceControl ||= new ServiceControl();
startClusterClient(mainFilename, serviceControl);
}