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

Function installSupervisedService

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

Source from the content-addressed store, hash-verified

106};
107
108export const installSupervisedService = async (opts: InstallOptions): Promise<void> => {
109 if (!executorAvailable()) {
110 throw new Error("Bundled executor binary is not available.");
111 }
112 const result = await runExecutor(["install", "--port", String(opts.port)], {
113 dataDir: opts.dataDir,
114 });
115 if (result.code !== 0) {
116 throw new Error((result.stderr || result.stdout).trim() || "`executor install` failed.");
117 }
118 serviceLog.info(`installed supervised service via bundled executor on port ${opts.port}`);
119};
120
121export const uninstallSupervisedService = async (dataDir: string): Promise<void> => {
122 if (!executorAvailable()) return;

Callers 3

restartSidecarAndReloadFunction · 0.90
registerIpcHandlersFunction · 0.90

Calls 3

executorAvailableFunction · 0.85
runExecutorFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected