(dataDir: string)
| 137 | }; |
| 138 | |
| 139 | export 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 | |
| 150 | export const restartSupervisedService = async (): Promise<void> => { |
| 151 | if (!executorAvailable()) { |
no test coverage detected