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

Function uninstallSupervisedService

apps/desktop/src/main/service.ts:139–148  ·  view source on GitHub ↗
(dataDir: string)

Source from the content-addressed store, hash-verified

137};
138
139export const uninstallSupervisedService = async (dataDir: string): Promise<void> => {
140 if (!executorAvailable()) return;
141 const result = await runExecutor(["service", "uninstall"], { dataDir });
142 if (result.code !== 0) {
143 throw new Error(
144 (result.stderr || result.stdout).trim() || "`executor service uninstall` failed.",
145 );
146 }
147 serviceLog.info("uninstalled supervised service via bundled executor");
148};
149
150export const restartSupervisedService = async (): Promise<void> => {
151 if (!executorAvailable()) {

Callers 1

registerIpcHandlersFunction · 0.90

Calls 3

executorAvailableFunction · 0.85
runExecutorFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected