MCPcopy
hub / github.com/xpf0000/FlyEnv / restartService

Method restartService

src/main/core/MCPTools.ts:613–617  ·  view source on GitHub ↗
(flag: string, version?: string)

Source from the content-addressed store, hash-verified

611 }
612
613 async restartService(flag: string, version?: string): Promise<any> {
614 this.assertLifecycleFlag(flag, 'restart')
615 await this.stopService(flag, version)
616 return this.startService(flag, version)
617 }
618
619 /** 解析一个版本对象供按版本的路径计算(缺省取运行中/第一个已装版本) */
620 private async resolveVersionObj(flag: string, version?: string): Promise<any | undefined> {

Callers 2

reloadWebServerMethod · 0.95
buildToolDefsMethod · 0.80

Calls 3

assertLifecycleFlagMethod · 0.95
stopServiceMethod · 0.95
startServiceMethod · 0.95

Tested by

no test coverage detected