MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / installSupervisedService

Function installSupervisedService

apps/desktop/src/main/service.ts:126–137  ·  view source on GitHub ↗
(opts: InstallOptions)

Source from the content-addressed store, hash-verified

124};
125
126export const installSupervisedService = async (opts: InstallOptions): Promise<void> => {
127 if (!executorAvailable()) {
128 throw new Error("Bundled executor binary is not available.");
129 }
130 const result = await runExecutor(["install", "--port", String(opts.port)], {
131 dataDir: opts.dataDir,
132 });
133 if (result.code !== 0) {
134 throw new Error((result.stderr || result.stdout).trim() || "`executor install` failed.");
135 }
136 serviceLog.info(`installed supervised service via bundled executor on port ${opts.port}`);
137};
138
139export const uninstallSupervisedService = async (dataDir: string): Promise<void> => {
140 if (!executorAvailable()) return;

Callers 4

installSupervisedAndWaitFunction · 0.90
restartSidecarAndReloadFunction · 0.90
registerIpcHandlersFunction · 0.90

Calls 3

executorAvailableFunction · 0.85
runExecutorFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected