(dataDir: string)
| 119 | }; |
| 120 | |
| 121 | export 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 | |
| 132 | export const restartSupervisedService = async (): Promise<void> => { |
| 133 | if (!executorAvailable()) { |
no test coverage detected