重启edge-admin时确保同目录下的edge-api也能重启

This commit is contained in:
GoEdgeLab
2023-03-11 22:02:29 +08:00
parent 83e7a5dc14
commit e2c93b5a40
2 changed files with 13 additions and 1 deletions

View File

@@ -209,7 +209,7 @@ func (this *AppCmd) runStop() {
fmt.Println(this.product+" stopped ok, pid:", types.String(pid))
}
// 重启
// RunRestart 重启
func (this *AppCmd) RunRestart() {
this.runStop()
time.Sleep(1 * time.Second)