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

Method cmdStart

internal/utils/service_windows.go:160–166  ·  view source on GitHub ↗

启动Web服务

()

Source from the content-addressed store, hash-verified

158
159// 启动Web服务
160func (this *ServiceManager) cmdStart() {
161 cmd := exec.Command(Tea.Root+Tea.DS+"bin"+Tea.DS+teaconst.SystemdServiceName+".exe", "start")
162 err := cmd.Start()
163 if err != nil {
164 this.LogError(err.Error())
165 }
166}
167
168// 停止Web服务
169func (this *ServiceManager) cmdStop() {

Callers 1

ExecuteMethod · 0.95

Calls 3

LogErrorMethod · 0.95
StartMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected