MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / stop

Function stop

packages/server/src/svc/systemd.ts:133–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 async function stop(): Promise<LifecycleResult> {
134 const result = await deps.execSystemctl(['stop', KIMI_SERVER_SYSTEMD_UNIT]);
135 if (result.code !== 0) {
136 return {
137 ok: false,
138 message: `systemctl --user stop failed: ${detail(result) ?? 'unknown error'}`,
139 };
140 }
141 return { ok: true, message: `Kimi server stopped (${KIMI_SERVER_SYSTEMD_UNIT}).` };
142 }
143
144 async function restart(): Promise<LifecycleResult> {
145 const result = await deps.execSystemctl(['restart', KIMI_SERVER_SYSTEMD_UNIT]);

Callers

nothing calls this directly

Calls 2

execSystemctlMethod · 0.80
detailFunction · 0.70

Tested by

no test coverage detected