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

Function restoreServiceCommand

e2e/cli/service-install-takeover.test.ts:170–173  ·  view source on GitHub ↗
(exe: string)

Source from the content-addressed store, hash-verified

168 : `kill -0 ${pid} 2>/dev/null && echo alive || echo dead`;
169
170const restoreServiceCommand = (exe: string): string =>
171 guestOs() === "windows"
172 ? `& '${exe}' service install --port ${PORT} *> 'C:/Windows/Temp/takeover-restore.log'; exit 0`
173 : `${exe} service install --port ${PORT} >/tmp/takeover-restore.log 2>&1 || true`;
174
175scenario(
176 "CLI service install · takes over a running predecessor daemon",

Calls 1

guestOsFunction · 0.70

Tested by

no test coverage detected