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

Method runStatus

internal/apps/app_cmd.go:250–258  ·  view source on GitHub ↗

状态

()

Source from the content-addressed store, hash-verified

248
249// 状态
250func (this *AppCmd) runStatus() {
251 var pid = this.getPID()
252 if pid == 0 {
253 fmt.Println(this.product + " not started yet")
254 return
255 }
256
257 fmt.Println(this.product + " is running, pid: " + types.String(pid))
258}
259
260// 获取当前的PID
261func (this *AppCmd) getPID() int {

Callers 1

RunMethod · 0.95

Calls 2

getPIDMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected