()
| 130 | }; |
| 131 | |
| 132 | export const restartSupervisedService = async (): Promise<void> => { |
| 133 | if (!executorAvailable()) { |
| 134 | throw new Error("Bundled executor binary is not available."); |
| 135 | } |
| 136 | const dataDir = join(app.getPath("home"), ".executor"); |
| 137 | const result = await runExecutor(["service", "restart"], { dataDir }); |
| 138 | if (result.code !== 0) { |
| 139 | throw new Error( |
| 140 | (result.stderr || result.stdout).trim() || "`executor service restart` failed.", |
| 141 | ); |
| 142 | } |
| 143 | }; |
no test coverage detected