状态
()
| 248 | |
| 249 | // 状态 |
| 250 | func (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 |
| 261 | func (this *AppCmd) getPID() int { |