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

Function uninstallSupervisedService

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

Source from the content-addressed store, hash-verified

119};
120
121export const uninstallSupervisedService = async (dataDir: string): Promise<void> => {
122 if (!executorAvailable()) return;
123 const result = await runExecutor(["service", "uninstall"], { dataDir });
124 if (result.code !== 0) {
125 throw new Error(
126 (result.stderr || result.stdout).trim() || "`executor service uninstall` failed.",
127 );
128 }
129 serviceLog.info("uninstalled supervised service via bundled executor");
130};
131
132export const restartSupervisedService = async (): Promise<void> => {
133 if (!executorAvailable()) {

Callers 1

registerIpcHandlersFunction · 0.90

Calls 3

executorAvailableFunction · 0.85
runExecutorFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected