MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / cmdStop

Method cmdStop

internal/utils/service_windows.go:169–175  ·  view source on GitHub ↗

停止Web服务

()

Source from the content-addressed store, hash-verified

167
168// 停止Web服务
169func (this *ServiceManager) cmdStop() {
170 cmd := exec.Command(Tea.Root+Tea.DS+"bin"+Tea.DS+teaconst.SystemdServiceName+".exe", "stop")
171 err := cmd.Start()
172 if err != nil {
173 this.LogError(err.Error())
174 }
175}

Callers 1

ExecuteMethod · 0.95

Calls 3

LogErrorMethod · 0.95
StartMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected